These DNS commands are the most commonly used when we are talking about DNS troubleshooting. This is because they are easy to use and can provide you information about your DNS records and how your network is operating. It doesn’t matter if you are a Linux, Windows, or macOS user. You have multiple commands included in your OS. So let’s see which are the most frequently practiced DNS commands and how you can use them.
The NSLookup command is one of the frequently used DNS diagnostic commands. The beneficial thing about it is that it is present on all of the popular operating systems (OS). With it, you are able to see all kinds of DNS records. Also, it includes various options.
Use the NSLookup to see all the available DNS records. In the command line, write:
$ nslookup -type=any domain.com
It is going to show you all of the available DNS records for the particular domain. If you want to see a specific DNS record, change the type to NS, A, AAAA, MX, SOA, etc. After the DNS type, you can put another domain name or IP address.
Learn everything about the Nslookup command!