User Tools

Site Tools


dns:nslookup

This is an old revision of the document!


DNS NSLookup

This is a Windows tool.

To lookup TXT Records

nslookup -q=TXT tester.jbstafford.co.uk 8.8.8.8
nslookup -type=TXT tester.jbstafford.co.uk 8.8.8.8

Different Server

Query a different DNS server than the one specified in Windows

nslookup www.google.com 1.1.1.1

Other

Query a different DNS server than the one specified in Windows

nslookup
> set norecurse 
>www.google.com

Different Port

In theory, you can use “set port=5353” to tell nslookup to query port 5353 instead of port 53. However, this documented feature is broken in Windows and doesn't work. Use dig instead.

TTL

To find the TTL of a DNS record, use

nslookup -debug www.example.com

You will see TTL in there and possibly Default TTL

dns/nslookup.1674312367.txt.gz · Last modified: by bstafford