Linux/DNS
< Linux
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)