📄 named.8
字号:
.LPThe ``slave'' line (shown commented out) is used to put the server in slavemode. In this mode, the server will only make queries to forwarders. Thisoption is normally used on machine that wish to run a server but forphysical or administrative reasons cannot be given access to the Internet,but have access to a host that does have access..LPThe ``sortlist'' line can be used to indicate networks that are to bepreferred over other networks Queries for host addresses from hosts on thesame network as the server will receive responses with local networkaddresses listed first, then addresses on the sort list, then otheraddresses..LPThe ``xfrnets'' directive (not shown) can be used to implement primativeaccess control. If this directive is given, then your name server willonly answer zone transfer requests from hosts which are on networks listedin your ``xfrnets'' directives. This directive may also be given as``tcplist'' for compatibility with older, interrim servers..LPThe ``include'' directive (not shown) can be used to process the contentsof some other file as though they appeared in place of the ``include''directive. This is useful if you have a lot of zones or if you have logical groupings of zones which are maintained by different people.The ``include'' directive takes one argument, that being the name of thefile whose contents are to be included. No quotes are necessary aroundthe file name..LPThe ``bogusns'' directive (not shown) tells \s-1BIND\s+1 that no queriesare to be sent to the specified name server addresses (which are specifiedas dotted quads, not as domain names). This is useful when you know thatsome popular server has bad data in a zone or cache, and you want to avoidcontamination while the problem is being fixed..PPThe master file consists of control information and a list of resourcerecords for objects in the zone of the forms:.RS.nf$INCLUDE <filename> <opt_domain>$ORIGIN <domain><domain> <opt_ttl> <opt_class> <type> <resource_record_data>.fi.REwhere.I domainis "." for root, "@" for the current origin, or a standard domainname. If.I domainis a standard domain name that does not end with ``.'', the current originis appended to the domain. Domain names ending with ``.'' areunmodified.The.I opt_domainfield is used to define an origin for the data in an included file.It is equivalent to placing a $ORIGIN statement before the firstline of the included file. The field is optional.Neither the.I opt_domainfield nor $ORIGIN statements in the included file modify the current originfor this file.The.I opt_ttlfield is an optional integer number for the time-to-live field.It defaults to zero, meaning the minimum value specified in the SOArecord for the zone.The.I opt_classfield is the object address type; currently only one type is supported,.BR IN ,for objects connected to the DARPA Internet. The.I typefield contains one of the following tokens; the data expected in the.I resource_record_datafield is in parentheses..TP "\w'MINFO 'u"Aa host address (dotted quad).IP NSan authoritative name server (domain).IP MXa mail exchanger (domain), preceded by a preference value (0..32767),with lower numeric values representing higher logical preferences..IP CNAMEthe canonical name for an alias (domain).IP SOAmarks the start of a zone of authority (domain of originating host,domain address of maintainer, a serial number and the followingparameters in seconds: refresh, retry, expire and minimum TTL (see RFC883))..IP NULLa null resource record (no format or data).IP RPa Responsible Person for some domain name (mailbox, TXT-referral).IP PTRa domain name pointer (domain).IP HINFOhost information (cpu_type OS_type).PPResource records normally end at the end of a line,but may be continued across lines between opening and closing parentheses.Comments are introduced by semicolons and continue to the end of the line..PPNote that there are other resource record types, not shown here. You shouldconsult the \s-1BIND\s+1 Operations Guide (``\s-1BOG\s+1'') for the completelist. Some resource record types may have been standardized in newer RFC'sbut not yet implemented in this version of \s-1BIND\s+1..PPEach master zone file should begin with an SOA record for the zone.An example SOA record is as follows:.LP.nf@ IN SOA ucbvax.Berkeley.EDU. rwh.ucbvax.Berkeley.EDU. ( 1989020501 ; serial 10800 ; refresh 3600 ; retry 3600000 ; expire 86400 ) ; minimum.fi.LPThe SOA specifies a serial number, which should be changed each time themaster file is changed. Note that the serial number can be given as adotted number, but this is a \fIvery\fP unwise thing to do since thetranslation to normal integers is via concatenation rather thanmultiplication and addition. You can spell out the year, month, day ofmonth, and 0..99 version number and still fit inside the unsigned 32-bitsize of this field. It's true that we will have to rethink this strategy inthe year 4294 (Greg.) but we're not worried about it. Secondary serverscheck the serial number at intervals specified by the refresh time inseconds; if the serial number changes, a zone transfer will be done to loadthe new data. If a master server cannot be contacted when a refresh is due,the retry time specifies the interval at which refreshes should be attempted.If a master server cannot be contacted within the interval given by theexpire time, all data from the zone is discarded by secondary servers. Theminimum value is the time-to-live (``\s-1TTL\s+1'') used by records in thefile with no explicit time-to-live value..SH NOTESThe boot file directives ``domain'' and ``suffixes'' have beenobsoleted by a more useful resolver-based implementation ofsuffixing for partially qualified domain names. The prior mechanismscould fail under a number of situations, especially when then localnameserver did not have complete information..spThe following signals have the specified effect when sent to theserver process using the.IR kill (1)command..IP SIGHUPCauses server to read named.boot and reload database. If the serveris built with the FORCED_RELOAD compile-time option, then SIGHUP willalso cause the server to check the serial number on all secondary zones.Normally the serial numbers are only checked at the SOA-specified intervals..IP SIGINTDumps current data base and cache to /var/tmp/named_dump.db.IP SIGIOTDumps statistics data into /var/tmp/named.stats if the server iscompiled -DSTATS. Statistics data is appended to the file..IP SIGSYSDumps the profiling data in /var/tmp if the server is compiledwith profiling (server forks, chdirs and exits)..IP SIGTERMDumps the primary and secondary database files.Used to save modified data on shutdown if theserver is compiled with dynamic updating enabled..IP SIGUSR1Turns on debugging; each SIGUSR1 increments debug level.(SIGEMT on older systems without SIGUSR1).IP SIGUSR2Turns off debugging completely.(SIGFPE on older systems without SIGUSR2).IP SIGWINCHToggles logging of all incoming queries via syslog(8)(requires server to have been built with the QRYLOG option)..SH FILES.nf.ta \w'/var/tmp/named_dump.db 'u/etc/named.boot name server configuration boot file/etc/named.pid the process id (/var/run/named.pid on newer systems)/var/tmp/named.run debug output/var/tmp/named_dump.db dump of the name server database/var/tmp/named.stats nameserver statistics data.fi.SH "SEE ALSO"kill(1), gethostbyname(3N), signal(3c), resolver(3), resolver(5), hostname(7),RFC 882, RFC 883, RFC 973, RFC 974, RFC 1033, RFC 1034, RFC 1035, RFC 1123,\fIName Server Operations Guide for \s-1BIND\s+1\fR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -