2017-01-24 21:22:44 +00:00
|
|
|
# nslookup
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Query name servers for various domain records.
|
2021-10-07 00:34:03 +01:00
|
|
|
> More information: <https://manned.org/nslookup>.
|
2017-01-24 21:22:44 +00:00
|
|
|
|
|
|
|
- Query your system's default name server for an IP address (A record) of the domain:
|
|
|
|
|
|
|
|
`nslookup {{example.com}}`
|
|
|
|
|
|
|
|
- Query a given name server for a NS record of the domain:
|
|
|
|
|
|
|
|
`nslookup -type=NS {{example.com}} {{8.8.8.8}}`
|
|
|
|
|
|
|
|
- Query for a reverse lookup (PTR record) of an IP address:
|
|
|
|
|
|
|
|
`nslookup -type=PTR {{54.240.162.118}}`
|
|
|
|
|
|
|
|
- Query for ANY available records using TCP protocol:
|
|
|
|
|
2023-12-27 06:41:30 +00:00
|
|
|
`nslookup -vc -type=ANY {{example.com}}`
|
2017-01-24 21:22:44 +00:00
|
|
|
|
|
|
|
- Query a given name server for the whole zone file (zone transfer) of the domain using TCP protocol:
|
|
|
|
|
|
|
|
`nslookup -vc -type=AXFR {{example.com}} {{name_server}}`
|
|
|
|
|
|
|
|
- Query for a mail server (MX record) of the domain, showing details of the transaction:
|
|
|
|
|
|
|
|
`nslookup -type=MX -debug {{example.com}}`
|
|
|
|
|
|
|
|
- Query a given name server on a specific port number for a TXT record of the domain:
|
|
|
|
|
|
|
|
`nslookup -port={{port_number}} -type=TXT {{example.com}} {{name_server}}`
|