.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "COOKIE" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fIcookie\fP \- adds an DNS cookie of this server to each reply .SH "DESCRIPTION" .PP This handler implements the DNS cookie RFC. .SH "SYNTAX" .PP .RS .nf cookie SECRET .fi .RE .PP Where \fBSECRET\fP is the secret to use in the server cookie generation record. .SH "EXAMPLES" .PP Enable cookies: .PP .RS .nf example.org { cookie Use the force whoami } .fi .RE .SH "CONTEXT" .PP The \fIcookie\fP handler adds two keys to the context: .RS .TS allbox; l l l l l l l l l l l l . \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP \fB\fCcookie/status\fR \fB\fCbool\fR true The validation status of the cookie. \fB\fCcookie/msgfunc\fR \fB\fCfunc\fR Function that adds reply cookie to the reply. .TE .RE .SH "BUGS" .PP \fIcookie\fP does not implement a cache to validate client, is just does enough to make \fB\fCdig\fR happy, this implies that \fB\fCcookie/status\fR is always set to true.