stable 7.0 and nslookup help command

Doug Barton dougb at
Thu Oct 9 10:43:58 PDT 2008

Kevin Oberman wrote:
> More importantly, dig(1) uses the standard resolver routines while
> nslookup has its own. 

Actually you have that backwards. :)  dig generates a raw dns request
packet and sends it out on the wire itself, more or less acting as if
it were an actual name server. Therefore if you are trying to debug
problems with a name server it is the better choice.

host uses the name servers in /etc/resolv.conf and more or less acts
as a local stub resolver. It's a good choice if you just want to get
the answer to "what does <this> resolve to?" It's also a good tool for
debugging what's happening when an application on your system is
getting an answer other than the one you think it should get.

nslookup actually uses the local stub resolver, and has the benefit of
having been around a long time so it's something people know. It's
also a good tool to debug the local stub resolver if you're getting an
answer other than what you think you should be getting, and/or
different from what dig/host say.




    This .signature sanitized for your protection

More information about the freebsd-stable mailing list