Debian Codegraph @

doc/man/named.8in

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "NAMED" "8" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 named \- Internet domain name server
34 .SH SYNOPSIS
35 .sp
36 \fBnamed\fP [ [\fB\-4\fP] | [\fB\-6\fP] ] [\fB\-c\fP config\-file] [\fB\-C\fP] [\fB\-d\fP debug\-level] [\fB\-D\fP string] [\fB\-E\fP engine\-name] [\fB\-f\fP] [\fB\-g\fP] [\fB\-L\fP logfile] [\fB\-M\fP option] [\fB\-m\fP flag] [\fB\-n\fP #cpus] [\fB\-p\fP port] [\fB\-s\fP] [\fB\-t\fP directory] [\fB\-u\fP user] [\fB\-v\fP] [\fB\-V\fP] ]
37 .SH DESCRIPTION
38 .sp
39 \fBnamed\fP is a Domain Name System (DNS) server, part of the BIND 9
40 distribution from ISC. For more information on the DNS, see \fBRFC 1033\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1033\:.html>,
41 \fBRFC 1034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1034\:.html>, and \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html>\&.
42 .sp
43 When invoked without arguments, \fBnamed\fP reads the default
44 configuration file \fB@sysconfdir@/named.conf\fP, reads any initial data, and
45 listens for queries.
46 .SH OPTIONS
47 .INDENT 0.0
48 .TP
49 .B \-4
50 This option tells \fBnamed\fP to use only IPv4, even if the host machine is capable of IPv6. \fB\-4\fP and
51 \fB\-6\fP are mutually exclusive.
52 .UNINDENT
53 .INDENT 0.0
54 .TP
55 .B \-6
56 This option tells \fBnamed\fP to use only IPv6, even if the host machine is capable of IPv4. \fB\-4\fP and
57 \fB\-6\fP are mutually exclusive.
58 .UNINDENT
59 .INDENT 0.0
60 .TP
61 .B \-c config\-file
62 This option tells \fBnamed\fP to use \fBconfig\-file\fP as its configuration file instead of the default,
63 \fB@sysconfdir@/named.conf\fP\&. To ensure that the configuration file
64 can be reloaded after the server has changed its working directory
65 due to to a possible \fBdirectory\fP option in the configuration file,
66 \fBconfig\-file\fP should be an absolute pathname.
67 .UNINDENT
68 .INDENT 0.0
69 .TP
70 .B \-C
71 This option prints out the default built\-in configuration and exits.
72 .sp
73 NOTE: This is for debugging purposes only and is not an
74 accurate representation of the actual configuration used by \fBnamed\fP
75 at runtime.
76 .UNINDENT
77 .INDENT 0.0
78 .TP
79 .B \-d debug\-level
80 This option sets the daemon\(aqs debug level to \fBdebug\-level\fP\&. Debugging traces from
81 \fBnamed\fP become more verbose as the debug level increases.
82 .UNINDENT
83 .INDENT 0.0
84 .TP
85 .B \-D string
86 This option specifies a string that is used to identify a instance of \fBnamed\fP
87 in a process listing. The contents of \fBstring\fP are not examined.
88 .UNINDENT
89 .INDENT 0.0
90 .TP
91 .B \-E engine\-name
92 When applicable, this option specifies the hardware to use for cryptographic
93 operations, such as a secure key store used for signing.
94 .sp
95 When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL
96 engine identifier that drives the cryptographic accelerator or
97 hardware service module (usually \fBpkcs11\fP).
98 .UNINDENT
99 .INDENT 0.0
100 .TP
101 .B \-f
102 This option runs the server in the foreground (i.e., do not daemonize).
103 .UNINDENT
104 .INDENT 0.0
105 .TP
106 .B \-F
107 This options turns on FIPS (US Federal Information Processing Standards)
108 mode if the underlying crytographic library supports running in FIPS
109 mode.
110 .UNINDENT
111 .INDENT 0.0
112 .TP
113 .B \-g
114 This option runs the server in the foreground and forces all logging to \fBstderr\fP\&.
115 .UNINDENT
116 .INDENT 0.0
117 .TP
118 .B \-L logfile
119 This option sets the log to the file \fBlogfile\fP by default, instead of the system log.
120 .UNINDENT
121 .INDENT 0.0
122 .TP
123 .B \-M option
124 This option sets the default (comma\-separated) memory context
125 options. The possible flags are:
126 .INDENT 7.0
127 .IP \(bu 2
128 \fBfill\fP: fill blocks of memory with tag values when they are
129 allocated or freed, to assist debugging of memory problems; this is
130 the implicit default if \fBnamed\fP has been compiled with
131 \fB\-\-enable\-developer\fP\&.
132 .IP \(bu 2
133 \fBnofill\fP: disable the behavior enabled by \fBfill\fP; this is the
134 implicit default unless \fBnamed\fP has been compiled with
135 \fB\-\-enable\-developer\fP\&.
136 .UNINDENT
137 .UNINDENT
138 .INDENT 0.0
139 .TP
140 .B \-m flag
141 This option turns on memory usage debugging flags. Possible flags are \fBusage\fP,
142 \fBtrace\fP and \fBrecord\fP\&. These correspond to the
143 \fBISC_MEM_DEBUGXXXX\fP flags described in \fB<isc/mem.h>\fP\&.
144 .UNINDENT
145 .INDENT 0.0
146 .TP
147 .B \-n #cpus
148 This option creates \fB#cpus\fP worker threads to take advantage of multiple CPUs. If
149 not specified, \fBnamed\fP tries to determine the number of CPUs
150 present and creates one thread per CPU. If it is unable to determine
151 the number of CPUs, a single worker thread is created.
152 .UNINDENT
153 .INDENT 0.0
154 .TP
155 .B \-p value
156 This option specifies the port(s) on which the server will listen
157 for queries. If \fBvalue\fP is of the form \fB<portnum>\fP or
158 \fBdns=<portnum>\fP, the server will listen for DNS queries on
159 \fBportnum\fP; if not not specified, the default is port 53. If
160 \fBvalue\fP is of the form \fBtls=<portnum>\fP, the server will
161 listen for TLS queries on \fBportnum\fP; the default is 853.
162 If \fBvalue\fP is of the form \fBhttps=<portnum>\fP, the server will
163 listen for HTTPS queries on \fBportnum\fP; the default is 443.
164 If \fBvalue\fP is of the form \fBhttp=<portnum>\fP, the server will
165 listen for HTTP queries on \fBportnum\fP; the default is 80.
166 .UNINDENT
167 .INDENT 0.0
168 .TP
169 .B \-s
170 This option writes memory usage statistics to \fBstdout\fP on exit.
171 .UNINDENT
172 .sp
173 \fBNote:\fP
174 .INDENT 0.0
175 .INDENT 3.5
176 This option is mainly of interest to BIND 9 developers and may be
177 removed or changed in a future release.
178 .UNINDENT
179 .UNINDENT
180 .INDENT 0.0
181 .TP
182 .B \-t directory
183 This option tells \fBnamed\fP to chroot to \fBdirectory\fP after processing the command\-line arguments, but
184 before reading the configuration file.
185 .UNINDENT
186 .sp
187 \fBWarning:\fP
188 .INDENT 0.0
189 .INDENT 3.5
190 This option should be used in conjunction with the \fB\-u\fP option,
191 as chrooting a process running as root doesn\(aqt enhance security on
192 most systems; the way \fBchroot\fP is defined allows a process
193 with root privileges to escape a chroot jail.
194 .UNINDENT
195 .UNINDENT
196 .INDENT 0.0
197 .TP
198 .B \-U #listeners
199 This option has been removed. Attempts to use it now result in a warning.
200 .UNINDENT
201 .INDENT 0.0
202 .TP
203 .B \-u user
204 This option sets the setuid to \fBuser\fP after completing privileged operations, such as
205 creating sockets that listen on privileged ports.
206 .UNINDENT
207 .sp
208 \fBNote:\fP
209 .INDENT 0.0
210 .INDENT 3.5
211 On Linux, \fBnamed\fP uses the kernel\(aqs capability mechanism to drop
212 all root privileges except the ability to \fBbind\fP to a
213 privileged port and set process resource limits. Unfortunately,
214 this means that the \fB\-u\fP option only works when \fBnamed\fP is run
215 on kernel 2.2.18 or later, or kernel 2.3.99\-pre3 or later, since
216 previous kernels did not allow privileges to be retained after
217 \fBsetuid\fP\&.
218 .UNINDENT
219 .UNINDENT
220 .INDENT 0.0
221 .TP
222 .B \-v
223 This option reports the version number and exits.
224 .UNINDENT
225 .INDENT 0.0
226 .TP
227 .B \-V
228 This option reports the version number, build options, supported
229 cryptographics algorithms, and exits.
230 .UNINDENT
231 .INDENT 0.0
232 .TP
233 .B \-X lock\-file
234 This option has been removed and using it will cause a fatal error.
235 .UNINDENT
236 .SH SIGNALS
237 .sp
238 In routine operation, signals should not be used to control the
239 nameserver; \fBrndc\fP \%<#\:std-iscman-rndc> should be used instead.
240 .INDENT 0.0
241 .TP
242 .B SIGHUP
243 This signal forces a reload of the server.
244 .TP
245 .B SIGINT, SIGTERM
246 These signals shut down the server.
247 .UNINDENT
248 .sp
249 The result of sending any other signals to the server is undefined.
250 .SH CONFIGURATION
251 .sp
252 The \fBnamed\fP configuration file is too complex to describe in detail
253 here. A complete description is provided in the BIND 9 Administrator
254 Reference Manual.
255 .sp
256 \fBnamed\fP inherits the \fBumask\fP (file creation mode mask) from the
257 parent process. If files created by \fBnamed\fP, such as journal files,
258 need to have custom permissions, the \fBumask\fP should be set explicitly
259 in the script used to start the \fBnamed\fP process.
260 .SH FILES
261 .INDENT 0.0
262 .TP
263 .B \fB@sysconfdir@/named.conf\fP
264 The default configuration file.
265 .TP
266 .B \fB@runstatedir@/named.pid\fP
267 The default process\-id file.
268 .UNINDENT
269 .SH SEE ALSO
270 .sp
271 \fBRFC 1033\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1033\:.html>, \fBRFC 1034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1034\:.html>, \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html>, \fBnamed\-checkconf(8)\fP \%<#\:std-iscman-named-checkconf>, \fBnamed\-checkzone(8)\fP \%<#\:std-iscman-named-checkzone>, \fBrndc(8)\fP \%<#\:std-iscman-rndc>, \fBnamed.conf(5)\fP \%<#\:std-iscman-named\:.conf>, BIND 9 Administrator Reference Manual.
272 .SH Author
273 Internet Systems Consortium
274 .SH Copyright
275 2026, Internet Systems Consortium
276 .\" End of generated man page.