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.

dig on RHEL6 has a different behavior than in RHEL5, related to the @server syntax:

root@rhel6# dig @some.dnsserver.com any some.example.com
dig: couldn't get address for 'some.dnsserver.com': not found

It seems it doesn't try to revolve the parameter for the specified dns server. Any idea why is that? Is it to avoid making another dns request?

share|improve this question

1 Answer 1

This is normal behavior: If dig can't find the address of the nameserver you specified (using the nameservers listed in /etc/resolv.conf) it will tell you it "couldn't get address for" your requested server.

Either you typo'd the DNS server name or your local DNS can't map the name to an IP -- Try specifying the nameserver by IP address instead?

share|improve this answer
You can test what dig would get when it tries to do the lookup of some.dnsserver.com by using the command getent hosts some.dnsserver.com. See the manual page for getent(1). You may want to use getent ahosts ... instead. –  Cameron Kerr Apr 15 at 10:53

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.