DNS/dig
Jump to navigation
Jump to search
Dig
Verbose lookup:
dig www.google.com
Lookup:
dig www.google.com +short # IP Only
Reverse Lookup:
dig -x 4.2.2.2 +short # Names only (can be multiple)
Lookup any record (if your company's DNS server allows ANY query): [1]
dig bad.horse any dig +noall +answer +multiline bad.horse any
IPv6
IPv6 Lookup:
dig AAAA ipv6.google.com # 2607:f8b0:4005:800::100e
IPv6 Reverse Lookup:
dig -x 2607:f8b0:4005:800::100e
Install
apt install dnsutils