Chapter 5. Using Dig and nslookup


Dig is the best tool you can use, but most people use nslookup because it's available almost everywhere. Both of these tools, as is true for most of the other tools in the BIND distribution, do not use the OS resolver library. They use DNS only. If you set up your resolver in that way, Telnet, ping, and the other non-DNS tools will first look in /etc/hosts and then query DNS. Your resolver setup configures the way the C library call family gethostby* works. Telnet, ping, and most other software use these calls, but Dig, host, and nslookup do not. So, Dig and Telnet might see things differently depending on your resolver setup and the contents of /etc/hosts. This does have an upside, though. nslookup and Dig present an unfiltered view of DNS; when you examine things with these tools, the OS C library won't get in your way or obscure things. However, all these tools have one thing in common they all use /etc/resolv.conf.



The Concise Guide to DNS and BIND
The Concise Guide to DNS and BIND
ISBN: 0789722739
EAN: 2147483647
Year: 1999
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net