COREDNS-NSID(7)
β¨ COREDNS-NSID β¨
okay so bestie, welcome to the nsid plugin page from the CoreDNS Plugins manual π
this one's short but iconic, and honestly it's giving "small but mighty."
πΈ NAME πΈ
nsid β adds an identifier of this server to each reply. yes, literally that's the whole job and it does it beautifully π
π¦ DESCRIPTION π¦
So this plugin implements RFC 5001 β¨https://www.rfc-editor.org/info/rfc5001/β© and it adds an EDNS0 OPT resource record to replies so that each server gets uniquely identified. π«Ά
It's lowkey a lifesaver in anycast setups, because you can actually see which server was responsible for generating the reply. Also amazing for debugging β no cap. π₯
β οΈ Heads up bestie: this plugin can only be used once per Server Block. That's the rule, periodt.
π§ SYNTAX π§
nsid [DATA]
DATA is the string to use in the nsid record. easy peasy π
And if you don't give DATA? Then the host's name is used instead. default behavior ate, honestly β¨
π EXAMPLES π
So here's how you enable nsid β look at this little cutie:
example.org {
whoami
nsid Use The Force
}
And now a client with NSID support will see an OPT record with the NSID option, like this:
% dig +nsid @localhost a whoami.example.org
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46880
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 3
....
; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; NSID: 55 73 65 20 54 68 65 20 46 6f 72 63 65 ("Use The Force")
;; QUESTION SECTION:
;whoami.example.org. IN A
like??? the hex literally spells out "Use The Force" π that's main character energy right there π
π SEE ALSO π
- RFC 5001 β¨https://www.rfc-editor.org/info/rfc5001/β© β go read it if you want the full lore π
and that's the whole page bestie, you're officially an nsid expert π this gorgeous little number comes to you from CoreDNS, dated October 2026, in the COREDNS-NSID(7) section of the CoreDNS Plugins manual πΈπ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms