Linux/DNS

From Wiki
< Linux
Revision as of 08:50, 8 April 2019 by Marcluer (talk | contribs)

host

nslookup

dig

  • install
apt install dnsutils
  • Basic query
dig google.com
  • Query all record types
dig google.com ANY
  • Query specific DNS server
dig google.de @8.8.8.8
  • Reverse DNS lookup
dig -x 193.99.144.80
  • Trace DNS path
dig google.com +trace

entry types

  • A (Host address)
  • AAAA (IPv6 host address)
  • ALIAS (Auto resolved alias)
  • CNAME (Canonical name for an alias)
  • MX (Mail eXchange)
  • NS (Name Server)
  • PTR (Pointer)
  • SOA (Start Of Authority)
  • SRV (location of service)
  • TXT (Descriptive text)