2017-08-29 21:12:14 -04:00
. \" Copyright (C) 2000, 2001, 2003-2009, 2011, 2013-2017 Internet Systems Consortium, Inc. ("ISC")
2005-05-11 02:05:43 -04:00
. \"
2016-07-21 03:11:01 -04:00
. \" This Source Code Form is subject to the terms of the Mozilla Public
. \" License, v. 2.0. If a copy of the MPL was not distributed with this
. \" file, You can obtain one at http://mozilla.org/MPL/2.0/.
2005-05-12 19:54:40 -04:00
. \"
2005-05-11 02:05:43 -04:00
.hy 0
.ad l
2015-10-06 01:45:21 -04:00
'\" t
2006-06-29 09:03:32 -04:00
. \" Title: named
. \" Author:
2015-10-07 00:11:09 -04:00
. \" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
2015-10-06 01:45:21 -04:00
. \" Date: 2014-02-19
2006-06-29 09:03:32 -04:00
. \" Manual: BIND9
2015-10-06 01:45:21 -04:00
. \" Source: ISC
. \" Language: English
2006-06-29 09:03:32 -04:00
. \"
2015-10-06 01:45:21 -04:00
.TH "NAMED" "8" "2014\-02\-19" "ISC" "BIND9"
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2005-10-12 23:14:05 -04:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2015-10-06 01:45:21 -04:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
2005-10-12 23:14:05 -04:00
.SH "NAME"
2001-03-27 12:54:37 -05:00
named \- Internet domain name server
2005-05-11 02:05:43 -04:00
.SH "SYNOPSIS"
2015-10-07 00:11:09 -04:00
.HP \w '\fBnamed\fR\ 'u
2017-08-29 21:12:14 -04:00
\fB named\fR [[\fB \- 4\fR ] | [\fB \- 6\fR ]] [\fB \- c\ \fR \fB \fI config\- file\fR \fR ] [\fB \- d\ \fR \fB \fI debug\- level\fR \fR ] [\fB \- D\ \fR \fB \fI string\fR \fR ] [\fB \- E\ \fR \fB \fI engine\- name\fR \fR ] [\fB \- f\fR ] [\fB \- g\fR ] [\fB \- L\ \fR \fB \fI logfile\fR \fR ] [\fB \- M\ \fR \fB \fI option\fR \fR ] [\fB \- m\ \fR \fB \fI flag\fR \fR ] [\fB \- n\ \fR \fB \fI #cpus\fR \fR ] [\fB \- p\ \fR \fB \fI port\fR \fR ] [\fB \- s\fR ] [\fB \- S\ \fR \fB \fI #max\- socks\fR \fR ] [\fB \- t\ \fR \fB \fI directory\fR \fR ] [\fB \- U\ \fR \fB \fI #listeners\fR \fR ] [\fB \- u\ \fR \fB \fI user\fR \fR ] [\fB \- v\fR ] [\fB \- V\fR ] [\fB \- X\ \fR \fB \fI lock\- file\fR \fR ] [\fB \- x\ \fR \fB \fI cache\- file\fR \fR ]
2001-03-27 12:54:37 -05:00
.SH "DESCRIPTION"
.PP
2005-10-12 23:14:05 -04:00
\fB named\fR
2015-10-06 01:45:21 -04:00
is a Domain Name System (DNS) server, part of the BIND 9 distribution from ISC\& . For more information on the DNS, see RFCs 1033, 1034, and 1035\& .
2001-03-27 12:54:37 -05:00
.PP
2005-10-12 23:14:05 -04:00
When invoked without arguments,
\fB named\fR
will read the default configuration file
2015-10-06 01:45:21 -04:00
/etc/named\& .conf, read any initial data, and listen for queries\& .
2001-03-27 12:54:37 -05:00
.SH "OPTIONS"
2006-12-11 20:45:21 -05:00
.PP
2005-05-11 02:05:43 -04:00
\- 4
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Use IPv4 only even if the host machine is capable of IPv6\& .
2005-10-12 23:14:05 -04:00
\fB \- 4\fR
and
\fB \- 6\fR
2015-10-06 01:45:21 -04:00
are mutually exclusive\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- 6
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Use IPv6 only even if the host machine is capable of IPv4\& .
2005-10-12 23:14:05 -04:00
\fB \- 4\fR
and
\fB \- 6\fR
2015-10-06 01:45:21 -04:00
are mutually exclusive\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- c \fI config\- file\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Use
\fI config\- file\fR
as the configuration file instead of the default,
2015-10-06 01:45:21 -04:00
/etc/named\& .conf\& . To ensure that reloading the configuration file continues to work after the server has changed its working directory due to to a possible
2005-10-12 23:14:05 -04:00
\fB directory\fR
option in the configuration file,
\fI config\- file\fR
2015-10-06 01:45:21 -04:00
should be an absolute pathname\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- d \fI debug\- level\fR
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Set the daemon\* (Aqs debug level to
\fI debug\- level\fR \& . Debugging traces from
2005-10-12 23:14:05 -04:00
\fB named\fR
2015-10-06 01:45:21 -04:00
become more verbose as the debug level increases\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2013-06-12 21:04:55 -04:00
\- D \fI string\fR
.RS 4
Specifies a string that is used to identify a instance of
\fB named\fR
2015-10-06 01:45:21 -04:00
in a process listing\& . The contents of
2013-06-12 21:04:55 -04:00
\fI string\fR
2015-10-06 01:45:21 -04:00
are not examined\& .
2013-06-12 21:04:55 -04:00
.RE
.PP
2009-10-05 21:14:42 -04:00
\- E \fI engine\- name\fR
.RS 4
2015-10-06 01:45:21 -04:00
When applicable, specifies the hardware to use for cryptographic operations, such as a secure key store used for signing\& .
2014-01-15 20:05:38 -05:00
.sp
2015-10-06 01:45:21 -04:00
When BIND is built with OpenSSL PKCS#11 support, this defaults to the string "pkcs11", which identifies an OpenSSL engine that can drive a cryptographic accelerator or hardware service module\& . When BIND is built with native PKCS#11 cryptography (\- \- enable\- native\- pkcs11), it defaults to the path of the PKCS#11 provider library specified via "\- \- with\- pkcs11"\& .
2009-10-05 21:14:42 -04:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- f
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Run the server in the foreground (i\& .e\& . do not daemonize)\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- g
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Run the server in the foreground and force all logging to
2015-10-06 01:45:21 -04:00
stderr\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2014-04-29 21:05:11 -04:00
\- L \fI logfile\fR
.RS 4
Log to the file
\fB logfile\fR
2015-10-06 01:45:21 -04:00
by default instead of the system log\& .
2014-04-29 21:05:11 -04:00
.RE
.PP
2015-02-25 20:04:45 -05:00
\- M \fI option\fR
.RS 4
2017-10-09 21:08:02 -04:00
Sets the default memory context options\& . If set to
\fI external\fR , this causes the internal memory manager to be bypassed in favor of system\- provided memory allocation functions\& . If set to
\fI fill\fR , blocks of memory will be filled with tag values when allocated or freed, to assist debugging of memory problems\& . (\fI nofill\fR
disables this behavior, and is the default unless
\fB named\fR
has been compiled with developer options\& .)
2015-02-25 20:04:45 -05:00
.RE
.PP
2007-05-16 02:12:02 -04:00
\- m \fI flag\fR
.RS 4
2015-10-06 01:45:21 -04:00
Turn on memory usage debugging flags\& . Possible flags are
2007-05-16 02:12:02 -04:00
\fI usage\fR ,
\fI trace\fR ,
\fI record\fR ,
\fI size\fR , and
2015-10-06 01:45:21 -04:00
\fI mctx\fR \& . These correspond to the ISC_MEM_DEBUGXXXX flags described in
<isc/mem\& .h>\& .
2007-05-16 02:12:02 -04:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- n \fI #cpus\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Create
\fI #cpus\fR
2015-10-06 01:45:21 -04:00
worker threads to take advantage of multiple CPUs\& . If not specified,
2005-10-12 23:14:05 -04:00
\fB named\fR
2015-10-06 01:45:21 -04:00
will try to determine the number of CPUs present and create one thread per CPU\& . If it is unable to determine the number of CPUs, a single worker thread will be created\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- p \fI port\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Listen for queries on port
2015-10-06 01:45:21 -04:00
\fI port\fR \& . If not specified, the default is port 53\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- s
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Write memory usage statistics to
2015-10-06 01:45:21 -04:00
stdout
on exit\& .
2015-10-07 00:11:09 -04:00
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fB Note\fR
.ps -1
.br
2015-10-06 01:45:21 -04:00
This option is mainly of interest to BIND 9 developers and may be removed or changed in a future release\& .
2015-10-07 00:11:09 -04:00
.sp .5v
2001-03-27 12:54:37 -05:00
.RE
2006-12-11 20:45:21 -05:00
.RE
.PP
2008-08-20 21:12:04 -04:00
\- S \fI #max\- socks\fR
.RS 4
Allow
\fB named\fR
to use up to
\fI #max\- socks\fR
2015-10-06 01:45:21 -04:00
sockets\& . The default value is 4096 on systems built with default configuration options, and 21000 on systems built with "configure \- \- with\- tuning=large"\& .
2015-10-07 00:11:09 -04:00
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fB Warning\fR
.ps -1
.br
2015-10-06 01:45:21 -04:00
This option should be unnecessary for the vast majority of users\& . The use of this option could even be harmful because the specified value may exceed the limitation of the underlying system API\& . It is therefore set only when the default configuration causes exhaustion of file descriptors and the operational environment is known to support the specified number of sockets\& . Note also that the actual maximum number is normally a little fewer than the specified value because
2008-08-20 21:12:04 -04:00
\fB named\fR
2015-10-06 01:45:21 -04:00
reserves some file descriptors for its internal use\& .
2015-10-07 00:11:09 -04:00
.sp .5v
2008-08-20 21:12:04 -04:00
.RE
.RE
.PP
2005-05-11 02:05:43 -04:00
\- t \fI directory\fR
2006-12-11 20:45:21 -05:00
.RS 4
2007-05-08 23:33:51 -04:00
Chroot to
2005-10-12 23:14:05 -04:00
\fI directory\fR
2015-10-06 01:45:21 -04:00
after processing the command line arguments, but before reading the configuration file\& .
2015-10-07 00:11:09 -04:00
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fB Warning\fR
.ps -1
.br
2005-10-12 23:14:05 -04:00
This option should be used in conjunction with the
\fB \- u\fR
2015-10-06 01:45:21 -04:00
option, as chrooting a process running as root doesn\* (Aqt enhance security on most systems; the way
2007-05-08 23:33:51 -04:00
\fB chroot(2)\fR
2015-10-06 01:45:21 -04:00
is defined allows a process with root privileges to escape a chroot jail\& .
2015-10-07 00:11:09 -04:00
.sp .5v
2001-03-27 12:54:37 -05:00
.RE
2006-12-11 20:45:21 -05:00
.RE
.PP
2011-11-09 20:16:02 -05:00
\- U \fI #listeners\fR
.RS 4
Use
\fI #listeners\fR
2015-10-06 01:45:21 -04:00
worker threads to listen for incoming UDP packets on each address\& . If not specified,
2011-11-09 20:16:02 -05:00
\fB named\fR
2015-10-06 01:45:21 -04:00
will calculate a default value based on the number of detected CPUs: 1 for 1 CPU, and the number of detected CPUs minus one for machines with more than 1 CPU\& . This cannot be increased to a value higher than the number of CPUs\& . If
2013-01-23 20:04:22 -05:00
\fB \- n\fR
2014-02-20 14:19:27 -05:00
has been set to a higher value than the number of detected CPUs, then
2011-11-09 20:16:02 -05:00
\fB \- U\fR
2015-10-06 01:45:21 -04:00
may be increased as high as that value, but no higher\& . On Windows, the number of UDP listeners is hardwired to 1 and this option has no effect\& .
2011-11-09 20:16:02 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- u \fI user\fR
2006-12-11 20:45:21 -05:00
.RS 4
2007-05-08 23:33:51 -04:00
Setuid to
2005-10-12 23:14:05 -04:00
\fI user\fR
2015-10-06 01:45:21 -04:00
after completing privileged operations, such as creating sockets that listen on privileged ports\& .
2015-10-07 00:11:09 -04:00
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fB Note\fR
.ps -1
.br
2005-10-12 23:14:05 -04:00
On Linux,
\fB named\fR
2015-10-06 01:45:21 -04:00
uses the kernel\* (Aqs capability mechanism to drop all root privileges except the ability to
2007-05-08 23:33:51 -04:00
\fB bind(2)\fR
2015-10-06 01:45:21 -04:00
to a privileged port and set process resource limits\& . Unfortunately, this means that the
2005-10-12 23:14:05 -04:00
\fB \- u\fR
option only works when
\fB named\fR
2015-10-06 01:45:21 -04:00
is run on kernel 2\& .2\& .18 or later, or kernel 2\& .3\& .99\- pre3 or later, since previous kernels did not allow privileges to be retained after
\fB setuid(2)\fR \& .
2015-10-07 00:11:09 -04:00
.sp .5v
2001-03-27 12:54:37 -05:00
.RE
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- v
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Report the version number and exit\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2008-09-23 21:12:39 -04:00
\- V
.RS 4
2015-10-06 01:45:21 -04:00
Report the version number and build options, and exit\& .
2008-09-23 21:12:39 -04:00
.RE
.PP
2014-12-18 20:04:53 -05:00
\- X \fI lock\- file\fR
.RS 4
Acquire a lock on the specified file at runtime; this helps to prevent duplicate
\fB named\fR
2015-10-06 01:45:21 -04:00
instances from running simultaneously\& . Use of this option overrides the
2015-03-03 20:04:48 -05:00
\fB lock\- file\fR
option in
2015-10-06 01:45:21 -04:00
named\& .conf\& . If set to
none, the lock file check is disabled\& .
2014-12-18 20:04:53 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
\- x \fI cache\- file\fR
2006-12-11 20:45:21 -05:00
.RS 4
2005-10-12 23:14:05 -04:00
Load data from
\fI cache\- file\fR
2015-10-06 01:45:21 -04:00
into the cache of the default view\& .
2015-10-07 00:11:09 -04:00
.if n \{ \
.sp
. \}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fB Warning\fR
.ps -1
.br
2015-10-06 01:45:21 -04:00
This option must not be used\& . It is only of interest to BIND 9 developers and may be removed or changed in a future release\& .
2015-10-07 00:11:09 -04:00
.sp .5v
2001-03-27 12:54:37 -05:00
.RE
2006-12-11 20:45:21 -05:00
.RE
2001-03-27 12:54:37 -05:00
.SH "SIGNALS"
.PP
2005-10-12 23:14:05 -04:00
In routine operation, signals should not be used to control the nameserver;
\fB rndc\fR
2015-10-06 01:45:21 -04:00
should be used instead\& .
2006-12-11 20:45:21 -05:00
.PP
2005-05-11 02:05:43 -04:00
SIGHUP
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Force a reload of the server\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2005-05-11 02:05:43 -04:00
SIGINT, SIGTERM
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
Shut down the server\& .
2006-12-11 20:45:21 -05:00
.RE
2001-03-27 12:54:37 -05:00
.PP
2015-10-06 01:45:21 -04:00
The result of sending any other signals to the server is undefined\& .
2001-03-27 12:54:37 -05:00
.SH "CONFIGURATION"
.PP
2005-10-12 23:14:05 -04:00
The
\fB named\fR
2015-10-06 01:45:21 -04:00
configuration file is too complex to describe in detail here\& . A complete description is provided in the
BIND 9 Administrator Reference Manual\& .
2009-05-21 21:14:49 -04:00
.PP
\fB named\fR
inherits the
\fB umask\fR
2015-10-06 01:45:21 -04:00
(file creation mode mask) from the parent process\& . If files created by
2009-05-21 21:14:49 -04:00
\fB named\fR , such as journal files, need to have custom permissions, the
\fB umask\fR
should be set explicitly in the script used to start the
\fB named\fR
2015-10-06 01:45:21 -04:00
process\& .
2001-03-27 12:54:37 -05:00
.SH "FILES"
2006-12-11 20:45:21 -05:00
.PP
2015-10-06 01:45:21 -04:00
/etc/named\& .conf
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
The default configuration file\& .
2006-12-11 20:45:21 -05:00
.RE
.PP
2015-10-06 01:45:21 -04:00
/var/run/named/named\& .pid
2006-12-11 20:45:21 -05:00
.RS 4
2015-10-06 01:45:21 -04:00
The default process\- id file\& .
2006-12-11 20:45:21 -05:00
.RE
2001-03-27 12:54:37 -05:00
.SH "SEE ALSO"
.PP
2005-10-12 23:14:05 -04:00
RFC 1033,
RFC 1034,
RFC 1035,
2015-10-06 01:45:21 -04:00
\fB named-checkconf\fR (8),
\fB named-checkzone\fR (8),
2005-10-12 23:14:05 -04:00
\fB rndc\fR (8),
2006-03-10 21:07:53 -05:00
\fB named.conf\fR (5),
2015-10-06 01:45:21 -04:00
BIND 9 Administrator Reference Manual\& .
2001-03-27 12:54:37 -05:00
.SH "AUTHOR"
.PP
2015-10-06 01:45:21 -04:00
\fB Internet Systems Consortium, Inc\& .\fR
2006-06-29 09:03:32 -04:00
.SH "COPYRIGHT"
2015-10-06 01:45:21 -04:00
.br
2017-08-29 21:12:14 -04:00
Copyright \(co 2000, 2001, 2003-2009, 2011, 2013-2017 Internet Systems Consortium, Inc. ("ISC")
2006-12-11 20:45:21 -05:00
.br