The nslookup
command is a network utility used to query Domain Name System (DNS) records. It allows users to obtain information about domain names, IP addresses, and other DNS-related data, making it a valuable tool for troubleshooting network issues and verifying DNS configurations.
The basic syntax of the nslookup
command is as follows:
nslookup [options] [arguments]
-type=TYPE
: Specifies the type of DNS record to query (e.g., A, AAAA, MX, TXT).-debug
: Enables debugging mode to provide more detailed output.-timeout=SECONDS
: Sets the time to wait for a response before timing out.-port=PORT
: Specifies the port number to use for the DNS query (default is 53).nslookup example.com
nslookup -type=MX example.com
nslookup example.com 8.8.8.8
nslookup -debug example.com
nslookup 93.184.216.34
-debug
option when troubleshooting to gain insights into the DNS resolution process.nslookup
session for convenience.