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 +nsid shows which anycast instance answered you

Dig
~/tips/tip-dig-nsid-anycast-instance

dig @1.1.1.1 example.com +nsid

Asks a DNS server to report which anycast node or instance gave the answer.

Public resolvers sit behind anycast, so the same IP address can be a different machine depending on where you are. The NSID option asks the server to name itself.

dig @1.1.1.1 example.com +nsid

dig sends an EDNS option that asks for a name server identifier. If the server supports it, the reply contains a line such as ; NSID: ... that identifies the data centre or instance, which helps when one location gives odd answers. Many resolvers return nothing for this option, so a missing line says nothing about the server being broken. It works best against servers you run yourself, where you can set the identifier.

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