1

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?

voretaq7
  • 79,879
  • 17
  • 130
  • 214
rgmarcha
  • 369
  • 1
  • 6

1 Answers1

4

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?

voretaq7
  • 79,879
  • 17
  • 130
  • 214
  • 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 '15 at 10:53