Debian Codegraph @

cmd/atomdns/handlers/cookie/README.md

raw
1 # Name
2
3 _cookie_ - adds an DNS cookie of this server to each reply
4
5 # Description
6
7 This handler implements the DNS cookie RFC.
8
9 # Syntax
10
11 ```txt
12 cookie SECRET
13 ```
14
15 Where **SECRET** is the secret to use in the server cookie generation record.
16
17 # Examples
18
19 Enable cookies:
20
21 ```conffile
22 example.org {
23 cookie Use the force
24 whoami
25 }
26 ```
27
28 # Context
29
30 The _cookie_ handler adds two keys to the context:
31
32 | Key | Type | Example | Description |
33 | :--------------- | :----- | :------ | :-------------------------------------------- |
34 | `cookie/status` | `bool` | true | The validation status of the cookie. |
35 | `cookie/msgfunc` | `func` | | Function that adds reply cookie to the reply. |
36
37 # Bugs
38
39 _cookie_ does not implement a cache to validate client, is just does enough to make `dig` happy, this implies
40 that `cookie/status` is always set to true.