.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "TSIG" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fItsig\fP \- validate incoming TSIG signed messages .SH "DESCRIPTION" .PP With \fItsig\fP, you can define TSIG secret keys. Using those keys, \fItsig\fP validates incoming TSIG messages. This is only done for notifies and zone transfers. It does not itself sign messages; it is up to the respective handler sending those to use the data added to the context by \fItsig\fP. See the "Context" section for details. .SH "SYNTAX" .PP .RS .nf tsig NAME ALGORITHM SECRET .fi .RE .IP \(bu 4 \fBSECRET\fP must be base64 encoded. \fBNAME\fP is the name of the key (this is a domain name, and may thus contain dots). And \fBALGORITHM\fP is the key's algorithm like \fB\fChmac-sha512\fR for instance. See the \fB\fCHmac*\fR constants in the dns package. .SH "EXAMPLES" .PP .RS .nf example.org { tsig example.org.key hmac\-sha512 NoTCJU+DMqFWywaPyxSijrDEA/eC3nK0xi3AMEZuPVk= dbhost ... { # ... } } .fi .RE .SH "CONTEXT" .PP The \fItsig\fP handler adds the following keys to the context: .RS .TS allbox; l l l l l l l l l l l l l l l l l l l l . \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP \fB\fCtsig/status\fR \fB\fCbool\fR true The validation status of TSIG. \fB\fCtsig/name\fR \fB\fCstring\fR example.org.key. Name, as configured. \fB\fCtsig/secret\fR \fB\fCstring\fR No...Pkv= Secret, as configured. \fB\fCtsig/algorithm\fR \fB\fCstring\fR hmac\-sha512. Algorithm, as configured. .TE .RE .PP Each of these can be used by respective "upstream" handlers to sign messages. Note \fItsig\fP does not register a \fB\fCtsig/msgfunc\fR as these are unconditionally executed by all handlers that returns a message.