brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: dig +nssearch compares the SOA serial on every name server

Dig
~/tips/tip-dig-nssearch-soa-serial

dig +nssearch example.com

Queries every authoritative name server and prints each one's SOA serial.

After I change a zone, I want to see whether all authoritative servers have picked it up. One command does this.

dig +nssearch example.com

dig looks up the authoritative name servers of the zone, then sends an SOA query to each one and prints one line per server with the serial number and the response time. If the serials differ, some servers have not picked up the newest version of the zone yet. Run the command again after a minute before you worry, because a secondary needs time to transfer the zone. The serial format YYYYMMDDnn is only a convention, not a rule.

Further reading: dig manual page

Going deeper: Guide: dig for beginners, look up DNS records and read the answer

More Dig tips dig +noall +answer DS example.com dig nope.iana.org @9.9.9.9 | grep -E 'status|SOA' dig +search nas dig @8.8.8.8 www.google.com +subnet=203.0.113.0/24 dig +yaml example.com A All Dig tips (36) All topics

Link