###Here's what was happening to our vi vps at accessworld:
$ ping www.google.com
ping: unknown host www.google.com
$ telnet www.google.com.np 80
telnet: could not resolve www.google.com.np/80: Name or service not known
$ traceroute www.google.com
gethostbyname2: Host name lookup failure
###The solution was to add the following lines to /etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8
nameserver 8.8.8.8
search accessworld.net
###and regenerate etc/resolv.conf
with these new settings with the command sudo resolvconf -u
Sources:
- https://askubuntu.com/a/157192
- https://serverfault.com/questions/484629/dns-lookups-failing
- google: tracepath "gethostbyname2: Host name lookup failure"
- google: how to add to resolv.conf