linux-cli

Domain Information Groper. Get the dns records of a site to quickly check whether a) your records exist and b) they are correct. Useful to look up aaaa-records and cnames.

# Format output
dig example.com +short +noquestion +nostat +nocmd
 
# Query other record types
dig example.com MX
dig example.com CNAME
 
# Use a different DNS server
dig @ns.hosteurope.com www.example.com
dig lukerambling.de
 
; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> lukerambling.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62649
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
 
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;lukerambling.de.		IN	A
 
;; ANSWER SECTION:
lukerambling.de.	3600	IN	A	37.200.99.181
 
;; Query time: 23 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Aug 18 19:08:13 CEST 2022
;; MSG SIZE  rcvd: 60
dig lukerambling.de CNAME
 
; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> lukerambling.de CNAME
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39300
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
 
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;lukerambling.de.		IN	CNAME
 
;; AUTHORITY SECTION:
lukerambling.de.	600	IN	SOA	ns81.domaincontrol.com. dns.jomax.net. 2020112904 28800 7200 604800 600
 
;; Query time: 15 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Aug 18 19:13:20 CEST 2022
;; MSG SIZE  rcvd: 115