Error: Name or service not known (api.stormpath.com:443) (SocketError)

If you've run into this error while connecting to Stormpath, chances are, there is a problem with your DNS resolver. To know for sure, follow these steps

First, locate your /etc/resolv.conf file in your terminal and run cat /etc/resolv.conf. This will return the IP address of your local DNS:

Server:     218.67.223.224
Address:    218.67.223.224#53

NOTE: The format may look like this instead: 

domain hsd1.ca.comcast.net
nameserver 218.67.223.224

After you have this address, you can then run nslookup api.stormpath.com $IP where $IP is the IP address from the 'Server' or 'nameserver' field above. If your local DNS is working properly, this should return the following:

Server: 218.67.223.224
Address: 218.67.223.224#53

Non-authoritative answer:
api.stormpath.com canonical name = api-stormpath-com-1912146462.us-east-1.elb.amazonaws.com.
Name: api-stormpath-com-1912146462.us-east-1.elb.amazonaws.com
Address: 174.129.247.89
...

If you see any other results, there is likely a problem with your local DNS that needs to be resolved. To be certain this is true, compare your local results with Google's. Paste this command in your terminal: 

nslookup api.stormpath.com 8.8.8.8

This is checking if Google can resolve the domain (api.stormpath.com). 8.8.8.8 is the address of Google's primary DNS.

This command should return the following (if there is not a problem with Google's DNS resolver):

Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
api.stormpath.com canonical name = api-stormpath-com-1912146462.us-east-1.elb.amazonaws.com.
Name: api-stormpath-com-1912146462.us-east-1.elb.amazonaws.com
Address: 174.129.247.89
...


Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.