Troubleshooting BIND

There are a number of tools that are available to assist with testing and troubleshooting problems with your BIND configuration. The simplest tool on most systems is the host command, which simply performs an address lookup or a reverse address lookup. More complete information can be gathered using dig.

The simplest usage of host is to lookup an address, or a name.

$ host serverbuddies.com
serverbuddies.com has address 67.228.43.85
serverbuddies.com mail is handled by 0 mail.serverbuddies.com.

Ask for the name servers that are authoritative for a domain by using the -t ns command line option..

$ host -t ns google.com
google.com name server ns2.google.com.
google.com name server ns3.google.com.
google.com name server ns4.google.com.
google.com name server ns1.google.com.

The MX record can be retrieved by using the -t mx option.

$ host -t mx yahoo.com

Just like host, it is possible to query your default system resolver, or you can query a name server specified on the command line. For example, I could query my local name server about the nostarch.com domain.

$ dig @192.168.1.1 serverbuddies.com

More at http://doxfer.com/

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.