| 1 |
# Name |
| 2 |
|
| 3 |
_chaos_ - respond to TXT queries in the CH class |
| 4 |
|
| 5 |
# Description |
| 6 |
|
| 7 |
This is useful for retrieving version or author information from the server by querying a TXT record |
| 8 |
for a special domain name in the CH class. For this to works you have to signal you need CH class queries in |
| 9 |
the config file, by adding **/CH** to the zone, see atomdns-conffile(5). |
| 10 |
|
| 11 |
# Syntax |
| 12 |
|
| 13 |
``` |
| 14 |
chaos [VERSION] { |
| 15 |
authors { |
| 16 |
"First Author" |
| 17 |
"Second Author" |
| 18 |
... |
| 19 |
} |
| 20 |
} |
| 21 |
``` |
| 22 |
|
| 23 |
- **VERSION** is the version to return. Defaults to "Served by atomdns, https://atomdns.miek.nl" if not set. |
| 24 |
- The `authors` property holds the authors that are returned. |
| 25 |
|
| 26 |
Note that you have to make sure that this handler will get actual queries for |
| 27 |
the following zone _prefixes_: `version.`, `authors.`, `hostname.` and `id.`, |
| 28 |
i.e. having `version.example.org` will suffice to get queries for the |
| 29 |
`version.` prefix. |
| 30 |
|
| 31 |
# Examples |
| 32 |
|
| 33 |
Specify all the zones: |
| 34 |
|
| 35 |
```conffile |
| 36 |
version.bind/CH version.server/CH authors.bind/CH hostname.bind/CH id.server/CH authors.server/CH { |
| 37 |
chaos atomdns-001 { |
| 38 |
authors { |
| 39 |
[email protected] |
| 40 |
} |
| 41 |
} |
| 42 |
} |
| 43 |
``` |
| 44 |
|
| 45 |
And test with `dig`: |
| 46 |
|
| 47 |
```txt |
| 48 |
% dig @localhost CH TXT version.bind |
| 49 |
|
| 50 |
;; ANSWER SECTION: |
| 51 |
version.bind. 0 CH TXT "atomdns-001" |
| 52 |
``` |
| 53 |
|
| 54 |
# See Also |
| 55 |
|
| 56 |
atomdns-conffile(5). |