pages:howtos:diagnose:how-to-diagnose-dns-with-dig
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pages:howtos:diagnose:how-to-diagnose-dns-with-dig [2024/05/07 12:46] – [Determine the DNS Server holding a RDNS (PTR) Record] mischerh | pages:howtos:diagnose:how-to-diagnose-dns-with-dig [2024/05/07 13:30] (current) – [How to interpret DIG output] mischerh | ||
---|---|---|---|
Line 14: | Line 14: | ||
* @a.ns14.net: | * @a.ns14.net: | ||
* nanoscopic.de: | * nanoscopic.de: | ||
+ | |||
+ | If no type is specified, dig queries for an " | ||
+ | |||
+ | <sxh bash; gutter: false> | ||
+ | dig wiretrip.de | ||
+ | </ | ||
+ | < | ||
+ | ; <<>> | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | ||
+ | |||
+ | ;; OPT PSEUDOSECTION: | ||
+ | ; EDNS: version: 0, flags:; udp: 1424 | ||
+ | ;; QUESTION SECTION: | ||
+ | ; | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | wiretrip.de. | ||
+ | |||
+ | ;; Query time: 13 msec | ||
+ | ;; SERVER: 192.168.1.1# | ||
+ | ;; WHEN: Tue May 07 15:18:42 CEST 2024 | ||
+ | ;; MSG SIZE rcvd: 56 | ||
+ | </ | ||
+ | |||
Line 104: | Line 131: | ||
Works for IPv4 and IPV6 addresses | Works for IPv4 and IPV6 addresses | ||
<sxh bash; gutter: false> | <sxh bash; gutter: false> | ||
- | IPADDR=" | + | IPADDR=" |
</ | </ | ||
< | < | ||
- | ; <<>> | + | ; <<>> |
;; global options: +cmd | ;; global options: +cmd | ||
;; Got answer: | ;; Got answer: | ||
- | ;; ->> | + | ;; ->> |
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 | ||
Line 116: | Line 143: | ||
; EDNS: version: 0, flags:; udp: 1424 | ; EDNS: version: 0, flags:; udp: 1424 | ||
;; QUESTION SECTION: | ;; QUESTION SECTION: | ||
- | ;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.5.a.f.c.0.c.0.8.f.4.0.1.0.a.2.ip6.arpa. IN NS | + | ;18.157.147.80.in-addr.arpa. |
;; AUTHORITY SECTION: | ;; AUTHORITY SECTION: | ||
- | c.5.a.f.c.0.c.0.8.f.4.0.1.0.a.2.ip6.arpa. | + | 157.147.80.in-addr.arpa. |
- | ;; Query time: 3 msec | + | ;; Query time: 39 msec |
;; SERVER: 192.168.1.1# | ;; SERVER: 192.168.1.1# | ||
- | ;; WHEN: Mon May 06 19:49:14 CEST 2024 | + | ;; WHEN: Tue May 07 14:55:38 CEST 2024 |
- | ;; MSG SIZE rcvd: 170 | + | ;; MSG SIZE rcvd: 114 |
</ | </ | ||
- | <wrap hi>The **DNS server**, serving the **PTR record** for **2a01: | + | The **DNS server**, serving the **PTR record** for **80.147.157.18** (nanoscopic.de), |
- | For one of my Telekom | + | For IPv6 addresses, e.g. 2003: |
+ | |||
+ | ===== Query the RDNS server of a Network Segment for current PTR data ===== | ||
+ | |||
+ | To get current RDNS data, use @< | ||
<sxh bash; gutter: false> | <sxh bash; gutter: false> | ||
- | IPADDR=" | + | dig @pns.dtag.de -x 2003: |
</ | </ | ||
+ | < | ||
+ | ; <<>> | ||
+ | ; (2 servers found) | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | ||
+ | ;; WARNING: recursion requested but not available | ||
+ | ;; OPT PSEUDOSECTION: | ||
+ | ; EDNS: version: 0, flags:; udp: 1232 | ||
+ | ; COOKIE: 0df13100e908f31301000000663a234b9c80aa6cf1625885 (good) | ||
+ | ;; QUESTION SECTION: | ||
+ | ; | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | f.4.9.a.3.b.e.f.f.f.1.1.4.2.e.b.0.2.4.f.c.1.b.0.a.0.0.0.3.0.0.2.ip6.arpa. 86400 IN PTR mail.ignion.de. | ||
+ | |||
+ | ;; Query time: 9 msec | ||
+ | ;; SERVER: 2003: | ||
+ | ;; WHEN: Tue May 07 14:49:15 CEST 2024 | ||
+ | ;; MSG SIZE rcvd: 157 | ||
+ | </ | ||
+ | |||
+ | ===== How to inspect a SPF Record ===== | ||
+ | |||
+ | Determine the authoritative DNS server | ||
+ | <sxh bash; gutter: false> | ||
+ | dig -t SOA mx.wiretrip.de | ||
+ | </ | ||
< | < | ||
- | ; <<>> | + | ; <<>> |
;; global options: +cmd | ;; global options: +cmd | ||
;; Got answer: | ;; Got answer: | ||
- | ;; ->> | + | ;; ->> |
- | ;; flags: qr rd ra; QUERY: 1, ANSWER: | + | ;; flags: qr rd ra; QUERY: 1, ANSWER: |
;; OPT PSEUDOSECTION: | ;; OPT PSEUDOSECTION: | ||
; EDNS: version: 0, flags:; udp: 1424 | ; EDNS: version: 0, flags:; udp: 1424 | ||
;; QUESTION SECTION: | ;; QUESTION SECTION: | ||
- | ;0.0.0.0.3.b.e.f.f.f.1.1.4.2.e.b.0.2.4.f.c.1.b.0.a.0.0.0.3.0.0.2.ip6.arpa. IN NS | + | ;wiretrip.de. |
- | ;; AUTHORITY | + | ;; ANSWER |
- | c.1.b.0.a.0.0.0.3.0.0.2.ip6.arpa. 3600 IN SOA pns.dtag.de. dns.telekom.de. 2024050700 10800 3600 2419200 172800 | + | wiretrip.de. |
- | ;; Query time: 23 msec | + | ;; Query time: 139 msec |
;; SERVER: 192.168.1.1# | ;; SERVER: 192.168.1.1# | ||
- | ;; WHEN: Tue May 07 14:41:33 CEST 2024 | + | ;; WHEN: Tue May 07 15:08:24 CEST 2024 |
- | ;; MSG SIZE rcvd: 160 | + | ;; MSG SIZE rcvd: 94 |
</ | </ | ||
- | <wrap hi>The **DNS server**, serving the **PTR record** | + | Then query the authoritative |
+ | <sxh bash; gutter: false> | ||
+ | dig @a.ns14.net -t TXT wiretrip.de | ||
+ | </sxh> | ||
- | ===== How to interpret DIG output ===== | + | < |
+ | ; <<>> | ||
+ | ; (2 servers found) | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 | ||
+ | ;; WARNING: recursion requested but not available | ||
+ | ;; OPT PSEUDOSECTION: | ||
+ | ; EDNS: version: 0, flags:; udp: 1232 | ||
+ | ;; QUESTION SECTION: | ||
+ | ; | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | wiretrip.de. | ||
+ | wiretrip.de. | ||
+ | |||
+ | ;; Query time: 16 msec | ||
+ | ;; SERVER: 62.116.159.231# | ||
+ | ;; WHEN: Tue May 07 15:09:38 CEST 2024 | ||
+ | ;; MSG SIZE rcvd: 198 | ||
+ | </ | ||
+ | |||
+ | <sxh bash; gutter: false> | ||
+ | dig @a.ns14.net -t TXT wiretrip.de | grep spf | ||
+ | </ | ||
+ | < | ||
+ | wiretrip.de. | ||
+ | </ | ||
+ | ===== How to interpret DIG output ===== | ||
+ | FIXME | ||
+ | * https:// | ||
---- | ---- | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
pages/howtos/diagnose/how-to-diagnose-dns-with-dig.1715085977.txt.gz · Last modified: 2024/05/07 12:46 by mischerh