DNS/dig: Difference between revisions

From Omnia
< DNS
Jump to navigation Jump to search
No edit summary
 
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
Reverse Lookup:
Reverse Lookup:
  dig -x 4.2.2.2 +short  # Names only (can be multiple)
  dig -x 4.2.2.2 +short  # Names only (can be multiple)
Lookup any record (if your company's DNS server allows ANY query): <ref>https://serverfault.com/questions/138949/list-all-dns-records-in-a-domain-using-dig</ref>
dig bad.horse any
dig +noall +answer +multiline bad.horse any


=== IPv6 ===
=== IPv6 ===
Line 17: Line 21:
IPv6 Reverse Lookup:
IPv6 Reverse Lookup:
  dig -x 2607:f8b0:4005:800::100e
  dig -x 2607:f8b0:4005:800::100e
== Install ==
apt install dnsutils


== keywords ==
== keywords ==

Latest revision as of 22:38, 29 September 2024

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

keywords