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/06 17:38] – [IPv6] 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 101: | Line 128: | ||
</ | </ | ||
- | ==== Determine the DNS Server holding a RDNS (PTR) Record ==== | + | ===== Determine the DNS Server holding a RDNS (PTR) Record ===== |
+ | Works for IPv4 and IPV6 addresses | ||
+ | <sxh bash; gutter: false> | ||
+ | IPADDR=" | ||
+ | </ | ||
+ | < | ||
+ | ; <<>> | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 | ||
+ | ;; OPT PSEUDOSECTION: | ||
+ | ; EDNS: version: 0, flags:; udp: 1424 | ||
+ | ;; QUESTION SECTION: | ||
+ | ; | ||
- | ===== How to interpret DIG output ===== | + | ;; AUTHORITY SECTION: |
+ | 157.147.80.in-addr.arpa. 3600 | ||
+ | ;; Query time: 39 msec | ||
+ | ;; SERVER: 192.168.1.1# | ||
+ | ;; WHEN: Tue May 07 14:55:38 CEST 2024 | ||
+ | ;; MSG SIZE rcvd: 114 | ||
+ | </ | ||
+ | |||
+ | The **DNS server**, serving the **PTR record** for **80.147.157.18** (nanoscopic.de), | ||
+ | |||
+ | |||
+ | 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> | ||
+ | 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 | ||
+ | ;; 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: 139 msec | ||
+ | ;; SERVER: 192.168.1.1# | ||
+ | ;; WHEN: Tue May 07 15:08:24 CEST 2024 | ||
+ | ;; MSG SIZE rcvd: 94 | ||
+ | </ | ||
+ | |||
+ | Then query the authoritative DNS server for current data: | ||
+ | <sxh bash; gutter: false> | ||
+ | dig @a.ns14.net -t TXT wiretrip.de | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ; <<>> | ||
+ | ; (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.1715017082.txt.gz · Last modified: 2024/05/06 17:38 by mischerh