nslookup Command Examples

Query name servers for various domain records. More information: https://manned.org/nslookup.

nslookup {{example.com}}

nslookup -type=NS {{example.com}} {{8.8.8.8}}

nslookup -type=PTR {{54.240.162.118}}

nslookup -vc -type=ANY {{example.com}}

nslookup -vc -type=AXFR {{example.com}} {{name_server}}

nslookup -type=MX -debug {{example.com}}

nslookup -port={{port_number}} -type=TXT {{example.com}} {{name_server}}