Testing DNS Using BIND'S dig Tool
Use the Domain Information Groper (dig) command line tool to test against the delegation where the domain is hosted. Immediately see whether changes took place without accounting for the cache or TTL (Time to Live) that you have configured.
Windows users can download the tool from BIND’s website. Use Terminal to access dig on Linux and Macintosh systems.
Before using BIND's dig tool, you must access or install dig on your system. Once you have access to dig, you can use dig to test DNS.
Go to ISC's website and download the most current, stable version of BIND.Note
BIND supports both 32 and 64 bit Windows systems. Confirm which version of Windows you are using and download the correct version of BIND. View Microsoft’s documentation to determine which version of Windows you are using.
- Extract the downloaded file and install BIND in the following directory:
C:\Program Files\ISC BIND 9. Select the Tools Only check box.
- After BIND is installed, open the Control Panel from the Windows menu, and then open System properties.
- On the Advanced tab, click Environment Variables.
- Under System Variables, select Path, and then click Edit.
- At the end of the path in the Edit System Variable window, add
C:\Program Files\ISC BIND 9\bin, and then click OK.
- In the Edit Variables window, click OK. In the System properties window, click OK.
To open the Command Prompt
For Windows versions 8 to10:
- Click the Windows menu icon.
- In the Search field, type
- Click Command Prompt.
For Windows version 7:
- On the Start menu click Run.
CMD, and then click OK.
- Open a terminal (Mac and Linux) or command prompt (Windows).
dig <any hostname>, and then press Enter.
The following information is returned:
- Question section: The query made to the nameserver. In this example, we asked for the first available A record for the hostname,
- Answer section: The first available answer for the query made to the DNS. In this example, we received the A record containing the IP address 184.108.40.206.
- Authority section: The authoritative nameservers from which the answer to the query was received. These nameservers house the zones for a domain.
- Additional section: More information the resolver might need but not the answer to the query.
||Returns any A records found within the queried hostname's zone.||
||Returns the records of that type found within the queried hostname's zone.||
||Provides a brief answer, usually just an IP address.||
||Queries the nameserver directly instead of the resolver configured in your local system.||
||Reverse lookup for IP addresses.||