User Tools

Site Tools


pages:howtos:diagnose:how-to-diagnose-dns-with-dig

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:howtos:diagnose:how-to-diagnose-dns-with-dig [2024/05/07 13:12] – [Query the RDNS server of a Network Segment for current PTR data] mischerhpages: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: specifying the DNS server to query   * @a.ns14.net: specifying the DNS server to query
   * nanoscopic.de: the name to query for   * nanoscopic.de: the name to query for
 +
 +If no type is specified, dig queries for an "A"-record. If not told to query a specific name server, dig will try each of the servers listed in the systems /etc/resolv.conf. Have a look at the [[https://linux.die.net/man/1/dig | dig manual page]] for more options.
 +
 +<sxh bash; gutter: false>
 +dig wiretrip.de
 +</sxh>
 +<code>
 +; <<>> DiG 9.18.26 <<>> wiretrip.de
 +;; global options: +cmd
 +;; Got answer:
 +;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43783
 +;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
 +
 +;; OPT PSEUDOSECTION:
 +; EDNS: version: 0, flags:; udp: 1424
 +;; QUESTION SECTION:
 +;wiretrip.de.                   IN      A
 +
 +;; ANSWER SECTION:
 +wiretrip.de.            3600    IN      A       159.69.16.204
 +
 +;; Query time: 13 msec
 +;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP)
 +;; WHEN: Tue May 07 15:18:42 CEST 2024
 +;; MSG SIZE  rcvd: 56
 +</code>
 +
  
  
Line 190: Line 217:
 </code> </code>
  
 +Then query the authoritative DNS server for current data:
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 dig @a.ns14.net -t TXT wiretrip.de dig @a.ns14.net -t TXT wiretrip.de
Line 225: Line 253:
 </code> </code>
 ===== How to interpret DIG output ===== ===== How to interpret DIG output =====
 +FIXME 
 +  * https://ns1.com/blog/decoding-dig-output
  
 ---- ----
 ~~DISCUSSION~~ ~~DISCUSSION~~
  
pages/howtos/diagnose/how-to-diagnose-dns-with-dig.1715087527.txt.gz · Last modified: 2024/05/07 13:12 by mischerh