We can also see that DNS server was used for the query. For example, the following output shows information for :įrom this, we can see that is currently pointing to IP address 93.184.216.119. At the > nslookup prompt, type the following commands: For example, to view the MX (mail exchanger) records for the domain, type nslookup at the command line. To look up a different DNS record, you must enter interactive mode. For example, the following command performs a DNS lookup on the domain using an OpenDNS server (which has IP address 208.67.222.222):īy default, nslookup looks up the A record for a domain. To use a specific DNS server for the query, add the server name or IP address to the end of the command.Replace with the domain that you want to test: At the command prompt, type the following command.To do this, click Start, click Run, type cmd, and then press Enter. To run nslookup on Microsoft Windows, follow these steps: However, the nslookup program provides much of the same functionality.
#GEEK TOOLS DNS DIG WINDOWS#
Microsoft Windows does not include the dig program. Follow the appropriate procedures below for your operating system. The exact steps to do this depend on your computer's operating system. While web-based tools are convenient and easy to use, it is often faster to use a command-line tool on your own system.
#GEEK TOOLS DNS DIG MAC OS X#
Troubleshooting DNS with command-line toolsĭig (on Mac OS X and Linux) and nslookup (on Microsoft Windows) are the primary command-line tools for troubleshooting DNS issues. If the domain has an A record configured, dig displays the domain name and its associated IP address. The page displays the results from dig, as well as the actual dig command used. You can use the default name server, or select a specific DNS server, like OpenDNS or Google. Under Nameservers, select the server that you want to use for the DNS query.Under Options, select the Show command check box.For more information about the various DNS record types, please visit.
You can test many different types of DNS records, such as MX and CNAME. In the Hostnames or IP addresses text box, type the domain that you want to test.For example, to view the A record for a domain (and determine the IP address associated with the domain), follow these steps: The site displays a global map showing the IP address associated with the domain name for a variety of DNS servers around the world.įor more in-depth DNS testing, you can use the online dig interface at. There are many web sites that provide these services for free.įor example, to test if DNS propagation is complete, you can visit and specify a domain name. If you have never worked at the command line before, web-based networking tools provide an easy way to start troubleshooting DNS. Troubleshooting DNS with command-line tools.Troubleshooting DNS with web-based tools.