.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "NSID" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fInsid\fP \- adds an identifier of this server to each reply .SH "DESCRIPTION" .PP This handler implements RFC 5001 and adds an option code to replies that uniquely identify the server. This is useful in anycast setups to see which server was responsible for generating the reply and for debugging. .SH "SYNTAX" .PP .RS .nf nsid [DATA] .fi .RE .PP Where \fBDATA\fP is the string to use in the nsid record. If \fBDATA\fP is not given, the host's name is used. .SH "EXAMPLES" .PP Enable nsid: .PP .RS .nf example.org { nsid Use the force whoami } .fi .RE .PP And now a client with NSID support will see an OPT record with the NSID option: .PP .RS .nf % 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 .fi .RE .SH "CONTEXT" .PP The \fInsid\fP handler adds a single key to the context: .RS .TS allbox; l l l l l l l l . \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP \fB\fCnsid/msgfunc\fR \fB\fCfunc\fR Function that adds nsid option to the reply. .TE .RE .SH "SEE ALSO" .PP RFC 5001.