Copied to clipboard

nslookup

Used to query the Domain Name System (DNS). It can be used to query the IP address of a specific domain name and other DNS records. It is often used in network troubleshooting and network management.

Note

The -t parameter is also used to specify the type of DNS record to be queried, but it differs from -q in that it can query more types of DNS records. Note that some DNS record types can only be queried using either -q or -t, depending on the version of nslookup you are using.

Examples

  • Query IP addresses for a specific domain name: nslookup example.com
  • Query a specific type of DNS record: nslookup -q=mx example.com
  • Query domain name information on a specific DNS server: nslookup example.com 8.8.8.8
  • Enable debug mode: nslookup -d example.com
  • Query IPv6 addresses: nslookup -6 example.com