Debian Codegraph @

cmd/atomdns/man/atomdns.1

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "ATOMDNS" 1 "August 2026" "atomdns" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fIatomdns\fP \- DNS nameserver that runs handlers
7
8 .SH "SYNOPSIS"
9 .PP
10 \fIatomdns\fP \fB[\-C|\-H|\-V]\fP [CONFFILE]
11
12 .SH "DESCRIPTION"
13 .PP
14 atomdns is a DNS server that chains handlers. Each handler handles a DNS feature, like serve zone files,
15 transfering those to secondaries or just exporting metrics. There are many handlers, each described in their
16 respective manual page. If an unknown handler is encountered it is skipped, while outputting a warning.
17
18 .PP
19 The server atomdns can be reloaded by sending it the HUP signal, this reloads the handlers only, and does
20 \fInot\fP restart any of the (web) servers, so changes to server addresses and limits (see atomdns\-global(7)) will not
21 be applied through reloads. I.e. if you modified the health endpoint that change \fIwill not\fP be picked up.
22 For those kind of changes the server needs to be restarted. Modifiying origins or handlers \fIare\fP picked up.
23
24 .PP
25 The \fIglobal\fP handler describes the options that are also used in starting the server, see atomdns\-global(7)
26 for more information. Normally you need a \fBCONFFILE\fP (atomdns\-conffile(5)) like this, to listen on all
27 addresses on port 53:
28
29 .PP
30 .RS
31
32 .nf
33 {
34 dns {
35 addr [::]:53
36 }
37 }
38
39 .fi
40 .RE
41
42 .PP
43 When atomdns starts it emits logs telling what zones are loaded and which (background) routines are started, when
44 succesful you are greeted with a banner (unless \fB\fCquiet\fR is true see atomdns\-global(7)).
45
46 .PP
47 .RS
48
49 .nf
50 ┏━┓ ╺┳╸ ┏━┓ ┏┳┓
51 ┣━┫ ┃ ┃ ┃ ┃┃┃ DNS
52 ╹ ╹ ╹ ┗━┛ ╹ ╹ v024 (0.5.15)
53 High performance and flexible DNS server
54 https://atomdns.miek.nl
55 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\\o/\_\_\_\_\_\_\_
56
57 .fi
58 .RE
59
60 .PP
61 There is optional positional argument, the \fBCONFFILE\fP to configure atomdns. If not given atomdns will use
62 this builtin Conffile:
63
64 .PP
65 .RS
66
67 .nf
68 {
69 dns {
70 addr [::]1053
71 }
72 }
73
74 example.org {
75 log
76 whoami
77 }
78
79 .fi
80 .RE
81
82 .PP
83 The following options are available:
84
85 .TP
86 \fB\-C\fP
87 check the configuration, report any erors and exit with status 1 or if everything is OK exit with status
88 code 0.
89 .TP
90 \fB\-H\fP
91 list all handlers and quit.
92 .TP
93 \fB\-V\fP
94 Show version and quit.
95
96
97 .SH "HANDLERS"
98 .PP
99 The following handlers are available:
100
101 .IP \(bu 4
102 \fIacl\fP \- enforces access control policies. See atomdns\-acl(7).
103 .IP \(bu 4
104 \fIany\fP \- give a minimal response to ANY queries. See atomdns\-any(7).
105 .IP \(bu 4
106 \fIas112\fP \- an AS112 black hole server. See atomdns\-as112(7).
107 .IP \(bu 4
108 \fIchaos\fP \- respond to TXT queries in the CH class. See atomdns\-chaos(7).
109 .IP \(bu 4
110 \fIcookie\fP \- adds an DNS cookie of this server to each reply. See atomdns\-cookie(7).
111 .IP \(bu 4
112 \fIdbfile\fP \- serve zone data from an RFC 1035\-style file. See atomdns\-dbfile(7).
113 .IP \(bu 4
114 \fIdbhosts\fP \- serve data from \fB\fC/etc/hosts\fR. See atomdns\-dbhost(7).
115 .IP \(bu 4
116 \fIdbsqilte\fP \- serve zone data from a SQLite database. See atomdns\-dbsqlite(7).
117 .IP \(bu 4
118 \fIdrunk\fP \- test client behavior. See atomdns\-drunk(7).
119 .IP \(bu 4
120 \fIecs\fP \- add EDNS client subnet to the context. See atomdns\-ecs(7).
121 .IP \(bu 4
122 \fIempty\fP \- consume setup tokens. See atomdns\-empty(7).
123 .IP \(bu 4
124 \fIgeoip\fP \- add geographical location data. See atomdns\-geoip(7).
125 .IP \(bu 4
126 \fIglobal\fP \- hold server properties. See atomdns\-global(7).
127 .IP \(bu 4
128 \fIid\fP \- add unique ID to the context. See atomdns\-id(7).
129 .IP \(bu 4
130 \fIimport\fP \- includes files or references snippets from a Conffile. See atomdns\-import(7).
131 .IP \(bu 4
132 \fIkill\fP \- stop atomdns after a duration. See atomdns\-kill(7).
133 .IP \(bu 4
134 \fIlog\fP \- log queries. See atomdns\-log(7).
135 .IP \(bu 4
136 \fImetrics\fP \- enable prometheus
137 \[la]https://prometheus.io/\[ra] metrics. See atomdns\-metrics(7).
138 .IP \(bu 4
139 \fInsid\fP \- adds an identifier of this server to each reply. See atomdns\-nsid(7).
140 .IP \(bu 4
141 \fIrefuse\fP \- refuse queries. See atomdns\-refuse(7).
142 .IP \(bu 4
143 \fIroot\fP \- override the global root. See atomdns\-root(7).
144 .IP \(bu 4
145 \fIsign\fP \- add DNSSEC records to zone files. See atomdns\-sign(7).
146 .IP \(bu 4
147 \fIurl\fP \- serve zone data from an URL. See atomdns\-url(7).
148 .IP \(bu 4
149 \fIwhoami\fP \- return your resolver's local IP address, port and transport. See atomdns\-whoami(7).
150
151
152 .SH "DIFFERENCE WITH COREDNS"
153 .PP
154 atomdns looks a lot like CoreDNS, the main differences are:
155
156 .IP \(bu 4
157 Uses dnsv2 (this library) which is 2x more efficient \fIand\fP incorperates a lot of ideas from CoreDNS.
158 .IP \(bu 4
159 Allows for dynamic ordering of handlers, handlers in CoreDNS (called plugins) have a static ordering, set at
160 compile time.
161 .IP \(bu 4
162 Ignores unknown handlers, CoreDNS stops with an error in that case.
163
164
165 .SH "AUTHORS"
166 .PP
167 atomdns authors.
168
169 .SH "COPYRIGHT"
170 .PP
171 Apache License 2.0
172
173 .SH "SEE ALSO"
174 .PP
175 See atomdns\-conffile(5), and atomdns\-global(7), and https://atomdns.miek.nl with more documentation.