dig – get host infos
dig is a tool for querying DNS nameservers for information about host addresses, mail exchanges, nameservers, and related information
– mediatemple.com
Usage (terminal): dig any domain.com for any entry. Or query specific entry, e.g. MX record: dig MX domain.com
Full command syntax: dig [@Server] [Domain] [Typ] [-x IP-Adresse]
Name Servers, human readable: dig +nocmd +noall +answer domain.com NS
Explanation: +nocmd = hide comand output, +noall = hide all infos (aka display flags), +answer show answer section, NS = Name-Servers
Eintrags-Typen:
| ANY | alle Einträge |
| A | IPv4 Record eines Hosts |
| AAAA | IPv6 Record eines Hosts |
| CNAME | Kanonischer Name, Zuordnung von Aliassen |
| MX | Mail Exchanger |
| NS | Hostname eines autoritativen Nameservers |
| PTR | Domain Name Pointer (um IP-Adressen Namen zuzuweisen) |
| SOA | Start of Authority |
| SRV | Angebotene Dienste |
| TXT | Beliebiger Text |
Source: wiki.ubuntuusers.de/dig/