resolv.conf.5
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 81 行
5
81 行
.TH resolv.conf 5.SH Nameresolv.conf \- resolver configuration file .SH Description.NXR "resolver configuration file".NXR "file" "resolver configuration".PPThe resolver configuration file,.PN /etc/resolv.conf ,contains information that the resolver routines readthe first time they are invoked by a process.The resolver file contains ASCII text and lists thename-value pairs that provide various types of resolver information..PPThe.PN /etc/resolv.conffile is required if your system is running BIND.This file must contain the BIND domain name for the local area network. If your system is a BIND client, this file must also contain nameserver entries..PPThere are two entry formats for the.PN /etc/resolv.conffile:.IP "\fBdomain\fI binddomain\fR"This line specifies the default domain to append to local host names.If no domain entries are present,the domain returned by.PN gethostnameafter the first dot (.) is used.If the host name does not contain a domain,the root domain is assumed..IP "\fBnameserver\fI address\fR"In this entry, the address is the IP address,in dot notation,of the BIND server that should be queried to resolve host nameand address information.You should have at least one name server listed.Two or more name servers reduces the possibility of interruptedBIND service in the event that one of the servers is down.You can list up to.PN NSMAX(10) name servers.If more than one server is listed,the resolver library queries you to try them in the order listed.If no name server entries are present,the default is to use the name server on the local machine..IPThe algorithm used is to try a name server,and, if the query times out, to try the next, until out of name servers or the query is resolved.The last step is to repeat trying all the name serversuntil a maximum number of retries has been madeor the query has been resolved..PPThe name value pair must appear on a single line, and the keyword.PN domainor.PN nameservermust start each line..SH ExamplesThe following is an example of a .PN /etc/resolv.conffile:.EX;; Data file for a client;domain cities.usnameserver 128.11.22.33.EELines beginning with a semicolon (;)are comment lines..SH Files.PN /etc/resolv.conf.SH See Alsogethostname(2), resolver(3), named(8).br.I Guide to the BIND Service
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?