Need help fixing dns lookup...

I have an Ubuntu 14.04 droplet.

A couple of days ago I started noticing a long delay between entering a username and being prompted for password when ssh’ing in. I suspected it was related to dns lookup.

I can ping, but ping results in “ping: unknown host” whois, ssh & msmtp give similar results “host unknown”

I assume I’ve messed up the dns nameservers somehow. But don’t know how to fix. Appreciate any help.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you want to check to see what nameservers your server is using, check out the /etc/resolv.conf file. You’ll find them in the format of:

nameserver nameserver

Feel free to change them if they aren’t working for you.

Ok… the problem seems to have fixed itself… very disconcerting… DO you doing something?