Debian Codegraph @

cmd/atomdns/man/atomdns.1.md

raw
1 # Name
2
3 _atomdns_ - DNS nameserver that runs handlers
4
5 # Synopsis
6
7 _atomdns_ **[-C|-H|-V]** [CONFFILE]
8
9 # Description
10
11 atomdns is a DNS server that chains handlers. Each handler handles a DNS feature, like serve zone files,
12 transfering those to secondaries or just exporting metrics. There are many handlers, each described in their
13 respective manual page. If an unknown handler is encountered it is skipped, while outputting a warning.
14
15 The server atomdns can be reloaded by sending it the HUP signal, this reloads the handlers only, and does
16 _not_ restart any of the (web) servers, so changes to server addresses and limits (see atomdns-global(7)) will not
17 be applied through reloads. I.e. if you modified the health endpoint that change _will not_ be picked up.
18 For those kind of changes the server needs to be restarted. Modifiying origins or handlers _are_ picked up.
19
20 The _global_ handler describes the options that are also used in starting the server, see atomdns-global(7)
21 for more information. Normally you need a **CONFFILE** (atomdns-conffile(5)) like this, to listen on all
22 addresses on port 53:
23
24 ```conffile
25 {
26 dns {
27 addr [::]:53
28 }
29 }
30 ```
31
32 When atomdns starts it emits logs telling what zones are loaded and which (background) routines are started, when
33 succesful you are greeted with a banner (unless `quiet` is true see atomdns-global(7)).
34
35 ```
36 ┏━┓ ╺┳╸ ┏━┓ ┏┳┓
37 ┣━┫ ┃ ┃ ┃ ┃┃┃ DNS
38 ╹ ╹ ╹ ┗━┛ ╹ ╹ v024 (0.5.15)
39 High performance and flexible DNS server
40 https://atomdns.miek.nl
41 __________________________________\o/_______
42 ```
43
44 There is optional positional argument, the **CONFFILE** to configure atomdns. If not given atomdns will use
45 this builtin Conffile:
46
47 ```confffile
48 {
49 dns {
50 addr [::]1053
51 }
52 }
53
54 example.org {
55 log
56 whoami
57 }
58 ```
59
60 The following options are available:
61
62 **-C**
63 : check the configuration, report any erors and exit with status 1 or if everything is OK exit with status
64 code 0.
65
66 **-H**
67 : list all handlers and quit.
68
69 **-V**
70 : Show version and quit.
71
72 # Handlers
73
74 The following handlers are available:
75
76 - _acl_ - enforces access control policies. See atomdns-acl(7).
77 - _any_ - give a minimal response to ANY queries. See atomdns-any(7).
78 - _as112_ - an AS112 black hole server. See atomdns-as112(7).
79 - _chaos_ - respond to TXT queries in the CH class. See atomdns-chaos(7).
80 - _cookie_ - adds an DNS cookie of this server to each reply. See atomdns-cookie(7).
81 - _dbfile_ - serve zone data from an RFC 1035-style file. See atomdns-dbfile(7).
82 - _dbhosts_ - serve data from `/etc/hosts`. See atomdns-dbhost(7).
83 - _dbsqilte_ - serve zone data from a SQLite database. See atomdns-dbsqlite(7).
84 - _drunk_ - test client behavior. See atomdns-drunk(7).
85 - _ecs_ - add EDNS client subnet to the context. See atomdns-ecs(7).
86 - _empty_ - consume setup tokens. See atomdns-empty(7).
87 - _geoip_ - add geographical location data. See atomdns-geoip(7).
88 - _global_ - hold server properties. See atomdns-global(7).
89 - _id_ - add unique ID to the context. See atomdns-id(7).
90 - _import_ - includes files or references snippets from a Conffile. See atomdns-import(7).
91 - _kill_ - stop atomdns after a duration. See atomdns-kill(7).
92 - _log_ - log queries. See atomdns-log(7).
93 - _metrics_ - enable [prometheus](https://prometheus.io/) metrics. See atomdns-metrics(7).
94 - _nsid_ - adds an identifier of this server to each reply. See atomdns-nsid(7).
95 - _refuse_ - refuse queries. See atomdns-refuse(7).
96 - _root_ - override the global root. See atomdns-root(7).
97 - _sign_ - add DNSSEC records to zone files. See atomdns-sign(7).
98 - _url_ - serve zone data from an URL. See atomdns-url(7).
99 - _whoami_ - return your resolver's local IP address, port and transport. See atomdns-whoami(7).
100
101 # Difference with CoreDNS
102
103 atomdns looks a lot like CoreDNS, the main differences are:
104
105 - Uses dnsv2 (this library) which is 2x more efficient _and_ incorperates a lot of ideas from CoreDNS.
106 - Allows for dynamic ordering of handlers, handlers in CoreDNS (called plugins) have a static ordering, set at
107 compile time.
108 - Ignores unknown handlers, CoreDNS stops with an error in that case.
109
110 # Authors
111
112 atomdns authors.
113
114 # Copyright
115
116 Apache License 2.0
117
118 # See Also
119
120 See atomdns-conffile(5), and atomdns-global(7), and https://atomdns.miek.nl with more documentation.