Debian Codegraph @

cmd/atomdns/man/atomdns-tsig.7

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "TSIG" 7 "August 2026" "atomdns handlers" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fItsig\fP \- validate incoming TSIG signed messages
7
8 .SH "DESCRIPTION"
9 .PP
10 With \fItsig\fP, you can define TSIG secret keys. Using those keys, \fItsig\fP validates incoming TSIG messages. This
11 is only done for notifies and zone transfers. It does not itself sign messages; it is up to the respective
12 handler sending those to use the data added to the context by \fItsig\fP. See the "Context" section for details.
13
14 .SH "SYNTAX"
15 .PP
16 .RS
17
18 .nf
19 tsig NAME ALGORITHM SECRET
20
21 .fi
22 .RE
23
24 .IP \(bu 4
25 \fBSECRET\fP must be base64 encoded. \fBNAME\fP is the name of the key (this is a domain name, and may thus
26 contain dots). And \fBALGORITHM\fP is the key's algorithm like \fB\fChmac-sha512\fR for instance. See the \fB\fCHmac*\fR
27 constants in the dns package.
28
29
30 .SH "EXAMPLES"
31 .PP
32 .RS
33
34 .nf
35 example.org {
36 tsig example.org.key hmac\-sha512 NoTCJU+DMqFWywaPyxSijrDEA/eC3nK0xi3AMEZuPVk=
37 dbhost ... {
38 # ...
39 }
40 }
41
42 .fi
43 .RE
44
45 .SH "CONTEXT"
46 .PP
47 The \fItsig\fP handler adds the following keys to the context:
48
49 .RS
50 .TS
51 allbox;
52 l l l l
53 l l l l
54 l l l l
55 l l l l
56 l l l l
57 .
58 \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP
59 \fB\fCtsig/status\fR \fB\fCbool\fR true The validation status of TSIG.
60 \fB\fCtsig/name\fR \fB\fCstring\fR example.org.key. Name, as configured.
61 \fB\fCtsig/secret\fR \fB\fCstring\fR No...Pkv= Secret, as configured.
62 \fB\fCtsig/algorithm\fR \fB\fCstring\fR hmac\-sha512. Algorithm, as configured.
63 .TE
64 .RE
65
66
67 .PP
68 Each of these can be used by respective "upstream" handlers to sign messages. Note \fItsig\fP does not register a
69 \fB\fCtsig/msgfunc\fR as these are unconditionally executed by all handlers that returns a message.