Copied to clipboard


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.


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.


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