Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In attempting to set up a VoIP server, I came across some interesting behavior from Ubuntu.

My VoIP account was assigned a unique hostname that I am to connect to, however, Ubuntu is unable to resolve it via any non-dns tools (asterisk and ping). If I plug the hostname into nslookup or dig, it resolves fine and if I ping the hostname on any windows server I have available, it also resolves fine.

The hostname in question is a public domain with a guid prepended to it as a subdomain.

My nsswitch.conf file has hosts: files dns (removing files didn't help)

resolv.conf has nameserver

hosts has (censored the ip and domain)       localhost
198.144.xxx.xxx *****.*****.me      *****

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

None of the other similar issues had this happening with public domains so I am lost on what is going wrong here.

Any advice or help would be appreciated.

share|improve this question
"None of the other similar issues had this happening with public domains..." So if you enter another public hostname, like example.com into your hosts file, it works? –  Mathias R. Jessen Dec 17 '12 at 7:31
I'm not quite sure what you mean. When I said that, I was referring to the fact that many other similar symptoms have appeared with other issues but they were all resulting from local domains within a network. But yes, I can ping example.com without entering it into my hosts file. –  Josh Mackey Dec 17 '12 at 8:13
Can you post the output of an nslookup command so we can see it is using the correct DNS servers. –  Lipongo Dec 26 '12 at 4:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.