NSLookup – Troubleshoot DNS

NS lookup is a tool to help troubleshoot DNS issues and provide detailed information about DNS records.  Below is a few handy commands:
nslookup
Default Server: hyperion.dsns.co.uk
Address: 192.168.226.4
>

Check Start of Authority (SOA)

> set q=SOA
> lightningone.co.uk
Server: hyperion.dsns.co.uk
Address: 192.168.226.4

Non-authoritative answer:
lightningone.co.uk
primary name server = ns58.eukdns.com
responsible mail addr = luke.scoobyluke.com
serial = 2011071802
refresh = 86400 (1 day)
retry = 7200 (2 hours)
expire = 3600000 (41 days 16 hours)
default TTL = 86400 (1 day)

ns58.eukdns.com internet address = 213.175.196.80

Check the Nameservers (NS)

> set q=NS
> lightningone.co.uk
Server: hyperion.dsns.co.uk
Address: 192.168.226.4

Non-authoritative answer:
lightningone.co.uk nameserver = ns1010322.ukvpshosting.com
lightningone.co.uk nameserver = ns1010323.ukvpshosting.com

ns1010322.ukvpshosting.com internet address = 92.48.70.190
ns1010323.ukvpshosting.com internet address = 92.48.70.191

Check E-Mail MX-Records (MX)

> set q=MX
> lightningone.co.uk
Server: hyperion.dsns.co.uk
Address: 192.168.226.4

Non-authoritative answer:
lightningone.co.uk MX preference = 0, mail exchanger = lightningone.co.u

lightningone.co.uk internet address = 92.48.70.190
>

Check everything (ANY)

> set q=ANY
> lightningone.co.uk
Server: hyperion.dsns.co.uk
Address: 192.168.226.4

Non-authoritative answer:
lightningone.co.uk internet address = 92.48.70.190
lightningone.co.uk nameserver = ns1010322.ukvpshosting.com
lightningone.co.uk nameserver = ns1010323.ukvpshosting.com
lightningone.co.uk
primary name server = ns58.eukdns.com
responsible mail addr = luke.scoobyluke.com
serial = 2011071802
refresh = 86400 (1 day)
retry = 7200 (2 hours)
expire = 3600000 (41 days 16 hours)
default TTL = 86400 (1 day)
lightningone.co.uk MX preference = 0, mail exchanger = lightningone.co.uk

ns1010322.ukvpshosting.com internet address = 92.48.70.190
ns1010323.ukvpshosting.com internet address = 92.48.70.191
lightningone.co.uk internet address = 92.48.70.190

Lookup all hosts within a domain

> ls -d lightningone.co.uk

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>