Debian Codegraph @

cmd/atomdns/man/atomdns-cookie.7

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "COOKIE" 7 "August 2026" "atomdns handlers" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fIcookie\fP \- adds an DNS cookie of this server to each reply
7
8 .SH "DESCRIPTION"
9 .PP
10 This handler implements the DNS cookie RFC.
11
12 .SH "SYNTAX"
13 .PP
14 .RS
15
16 .nf
17 cookie SECRET
18
19 .fi
20 .RE
21
22 .PP
23 Where \fBSECRET\fP is the secret to use in the server cookie generation record.
24
25 .SH "EXAMPLES"
26 .PP
27 Enable cookies:
28
29 .PP
30 .RS
31
32 .nf
33 example.org {
34 cookie Use the force
35 whoami
36 }
37
38 .fi
39 .RE
40
41 .SH "CONTEXT"
42 .PP
43 The \fIcookie\fP handler adds two keys to the context:
44
45 .RS
46 .TS
47 allbox;
48 l l l l
49 l l l l
50 l l l l
51 .
52 \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP
53 \fB\fCcookie/status\fR \fB\fCbool\fR true The validation status of the cookie.
54 \fB\fCcookie/msgfunc\fR \fB\fCfunc\fR Function that adds reply cookie to the reply.
55 .TE
56 .RE
57
58
59 .SH "BUGS"
60 .PP
61 \fIcookie\fP does not implement a cache to validate client, is just does enough to make \fB\fCdig\fR happy, this implies
62 that \fB\fCcookie/status\fR is always set to true.