Nslookup: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux =Overview= =Non-Interactive Mode= Getting the IP address for a name: <pre> $ nslookup home.feodorov.com Server: 192.168.1.1...")
 
Line 10: Line 10:


<pre>
<pre>
$ nslookup home.feodorov.com
nslookup www.cnn.com
 
Server: 8.8.8.8
Server:         192.168.1.1
Address: 8.8.8.8#53
Address:       192.168.1.1#53


Non-authoritative answer:
Non-authoritative answer:
Name:   home.feodorov.com
www.cnn.com canonical name = turner.map.fastly.net.
Address: 99.63.72.77
Name: turner.map.fastly.net
Address: 151.101.0.73
Name: turner.map.fastly.net
Address: 151.101.192.73
Name: turner.map.fastly.net
Address: 151.101.64.73
Name: turner.map.fastly.net
Address: 151.101.128.73
</pre>
</pre>


Line 23: Line 29:


<pre>
<pre>
nslookup -query=hinfo feodorov.com
nslookup -query=hinfo www.cnn.com
Server: 8.8.8.8
Address: 8.8.8.8#53
 
Non-authoritative answer:
www.cnn.com canonical name = turner.map.fastly.net.
 
Authoritative answers can be found from:
fastly.net
origin = ns1.fastly.net
mail addr = hostmaster.fastly.com
serial = 2016110301
refresh = 3600
retry = 600
expire = 604800
minimum = 30
</pre>
</pre>


Line 29: Line 50:


<pre>
<pre>
$ nslookup -query=mx feodorov.com
nslookup -query=mx novaordis.com
Server:         192.168.1.1
Server: 8.8.8.8
Address:       192.168.1.1#53
Address: 8.8.8.8#53


Non-authoritative answer:
Non-authoritative answer:
feodorov.com   mail exchanger = 99 mx99.your-site.com.
novaordis.com mail exchanger = 5 alt1.aspmx.l.google.com.
feodorov.com   mail exchanger = 10 mx01.your-site.com.
novaordis.com mail exchanger = 5 alt2.aspmx.l.google.com.
novaordis.com mail exchanger = 0 aspmx.l.google.com.
novaordis.com mail exchanger = 10 aspmx2.googlemail.com.
novaordis.com mail exchanger = 10 aspmx3.googlemail.com.
</pre>
</pre>


In general, -query can be followed by any DNS zone file element names (mx, a, txt, etc).
In general, -query can be followed by any DNS zone file element names (mx, a, txt, etc).

Revision as of 23:28, 3 April 2017

Internal

Overview

Non-Interactive Mode

Getting the IP address for a name:

 nslookup www.cnn.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
www.cnn.com	canonical name = turner.map.fastly.net.
Name:	turner.map.fastly.net
Address: 151.101.0.73
Name:	turner.map.fastly.net
Address: 151.101.192.73
Name:	turner.map.fastly.net
Address: 151.101.64.73
Name:	turner.map.fastly.net
Address: 151.101.128.73

Getting more information for a name:

nslookup -query=hinfo www.cnn.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
www.cnn.com	canonical name = turner.map.fastly.net.

Authoritative answers can be found from:
fastly.net
	origin = ns1.fastly.net
	mail addr = hostmaster.fastly.com
	serial = 2016110301
	refresh = 3600
	retry = 600
	expire = 604800
	minimum = 30

Getting the Mail Exhanger (MX) for a domain:

nslookup -query=mx novaordis.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
novaordis.com	mail exchanger = 5 alt1.aspmx.l.google.com.
novaordis.com	mail exchanger = 5 alt2.aspmx.l.google.com.
novaordis.com	mail exchanger = 0 aspmx.l.google.com.
novaordis.com	mail exchanger = 10 aspmx2.googlemail.com.
novaordis.com	mail exchanger = 10 aspmx3.googlemail.com.

In general, -query can be followed by any DNS zone file element names (mx, a, txt, etc).