Debian Codegraph @

cmd/atomdns/man/atomdns-nsid.7

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "NSID" 7 "August 2026" "atomdns handlers" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fInsid\fP \- adds an identifier of this server to each reply
7
8 .SH "DESCRIPTION"
9 .PP
10 This handler implements RFC 5001 and adds an option code to replies that
11 uniquely identify the server. This is useful in anycast setups to see which server was responsible for
12 generating the reply and for debugging.
13
14 .SH "SYNTAX"
15 .PP
16 .RS
17
18 .nf
19 nsid [DATA]
20
21 .fi
22 .RE
23
24 .PP
25 Where \fBDATA\fP is the string to use in the nsid record. If \fBDATA\fP is not given, the host's name is used.
26
27 .SH "EXAMPLES"
28 .PP
29 Enable nsid:
30
31 .PP
32 .RS
33
34 .nf
35 example.org {
36 nsid Use the force
37 whoami
38 }
39
40 .fi
41 .RE
42
43 .PP
44 And now a client with NSID support will see an OPT record with the NSID option:
45
46 .PP
47 .RS
48
49 .nf
50 % dig +nsid @localhost a whoami.example.org
51
52 ;; Got answer:
53 ;; \->>HEADER<<\- opcode: QUERY, status: NOERROR, id: 46880
54 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 3
55
56 \&....
57
58 ; OPT PSEUDOSECTION:
59 ; EDNS: version: 0, flags:; udp: 4096
60 ; NSID: 55 73 65 20 54 68 65 20 46 6f 72 63 65 ("Use The Force")
61 ;; QUESTION SECTION:
62 ;whoami.example.org. IN A
63
64 .fi
65 .RE
66
67 .SH "CONTEXT"
68 .PP
69 The \fInsid\fP handler adds a single key to the context:
70
71 .RS
72 .TS
73 allbox;
74 l l l l
75 l l l l
76 .
77 \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP
78 \fB\fCnsid/msgfunc\fR \fB\fCfunc\fR Function that adds nsid option to the reply.
79 .TE
80 .RE
81
82
83 .SH "SEE ALSO"
84 .PP
85 RFC 5001.