Nslookup

From NovaOrdis Knowledge Base
Revision as of 23:25, 3 April 2017 by Ovidiu (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Non-Interactive Mode

Getting the IP address for a name:

$ nslookup home.feodorov.com

Server:         192.168.1.1
Address:        192.168.1.1#53

Non-authoritative answer:
Name:   home.feodorov.com
Address: 99.63.72.77

Getting more information for a name:

nslookup -query=hinfo feodorov.com

Getting the Mail Exhanger (MX) for a domain:

$ nslookup -query=mx feodorov.com
Server:         192.168.1.1
Address:        192.168.1.1#53

Non-authoritative answer:
feodorov.com    mail exchanger = 99 mx99.your-site.com.
feodorov.com    mail exchanger = 10 mx01.your-site.com.

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