host.conf - parsing the configuration file

DESCRIPTION (description)

File /etc/host.conf contains configuration information to declare its parsing library should contain one configuration keyword per line, followed by followed by appropriate configuration information system to identify keywords are:.. The Order , the TRIM , Multi , nospoof and . reorder each keyword in the following will be introduced:

 

order
This keyword query to determine how to perform a host of behind it should be followed by one or more forms of inquiry, these query separated by commas effective methods are:.. The bind , hosts and NIS .
trim
This keyword can appear multiple times. Each time thereafter should follow a single domain name with a period beginning point appears. If set, resolv + library will automatically cut off the back of any hostname resolved via DNS out of the domain name. This option local host and domain (information:.. trim for invalid by NIS or the hosts file to obtain the host name should be noted that to ensure that the first hostname for each record in the hosts file is the full name or non-full name, to suit the local installation.)
multi
Valid values are: ON and OFF . If set to ON , the resolv + library will return a host in / etc / hosts all valid addresses appear in the file, not just the first as a default under. OFF, otherwise may result in a potential loss of performance site has a large hosts file.
nospoof
Valid values are: ON and OFF . If set to ON , resolv + library will attempt to prevent hostname spoofing to enhance the use rlogin security and rsh it is operates as follows: After executing the query a host address, resolv + will execute a query host name of the address. If they do not match, the query that is failure.
spoofalert
If this option is set on also set nospoof options, resolv + will be a false alarm information via syslog facility records. The default is OFF .
reorder
Valid values are on and OFF . If set to on , the resolv + will attempt to rearrange the host address in order to perform gethostbyname (3), the local address is listed first (i.e. addresses on the same subnet). Reordering suitable for all query. the default is OFF .

FILES (related documents)

/etc/host.conf
Parsing the configuration file
/etc/resolv.conf
Parsing the configuration file
/etc/hosts
Local host database 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11087880.html