1 .\" Copyright (c) 1997 Martin Schulze (joey@infodrom.north.de)
3 .\" %%%LICENSE_START(GPLv2+_doc_full)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
24 .\" Much of the text is copied from the manpage of resolv+(8).
26 .\" 2003-08-23 Martin Schulze <joey@infodrom.org> Updated according to glibc 2.3.2
27 .TH HOST.CONF 5 2003-08-23 "Linux" "Linux System Administration"
29 host.conf \- resolver configuration file
33 contains configuration information specific to the resolver library.
34 It should contain one configuration keyword per line, followed by
35 appropriate configuration information.
36 The keywords recognized are
37 .IR order ", " trim ", " multi ", " nospoof ", " spoof ", and " reorder .
38 These keywords are described below.
41 This keyword specifies how host lookups are to be performed.
42 It should be followed by one or more lookup methods, separated by commas.
44 .IR bind ", " hosts ", and " nis .
47 This keyword may be listed more than once.
48 Each time it should be
49 followed by a list of domains, separated by colons (\(aq:\(aq), semicolons
50 (\(aq;\(aq) or commas (\(aq,\(aq), with the leading dot.
52 resolv+ library will automatically trim the given domain name from the
53 end of any hostname resolved via DNS.
54 This is intended for use with
55 local hosts and domains.
56 (Related note: trim will not affect hostnames
57 gathered via NIS or the hosts file.
58 Care should be taken to
59 ensure that the first hostname for each entry in the hosts file is
60 fully qualified or unqualified, as appropriate for the local
68 the resolv+ library will return all valid addresses for a host that
72 instead of only the first.
75 by default, as it may cause a substantial performance loss at sites
76 with large hosts files.
83 the resolv+ library will attempt to prevent hostname spoofing to
84 enhance the security of
85 .BR rlogin " and " rsh .
86 It works as follows: after performing a host address lookup, resolv+
87 will perform a hostname lookup for that address.
89 do not match, the query will fail.
96 If this option is set to
100 option is also set, resolv+ will log a warning of the error via the
107 .IR off ", " nowarn " and " warn .
108 If this option is set to
110 spoofed addresses are permitted and no warnings will be emitted
111 via the syslog facility.
112 If this option is set to
114 resolv+ will attempt to prevent hostname spoofing to
115 enhance the security and log a warning of the error via the syslog
117 If this option is set to
119 the resolv+ library will attempt to prevent hostname spoofing to
120 enhance the security but not emit warnings via the syslog facility.
121 Setting this option to anything else is equal to setting it to
129 resolv+ will attempt to reorder host addresses so that local addresses
130 (i.e., on the same subnet) are listed first when a
131 .BR gethostbyname (3)
133 Reordering is done for all lookup methods.
137 There are six environment variables that can be used to allow users to
138 override the behavior which is configured in
142 If set this variable points to a file that should be read instead of
150 .B RESOLV_SPOOF_CHECK
152 .IR nospoof ", " spoofalert " and " spoof
153 commands in the same way as the
157 .IR off ", " nowarn " and " warn .
169 .B RESOLV_ADD_TRIM_DOMAINS
170 A list of domains, separated by colons (\(aq:\(aq), semicolons (\(aq;\(aq) or
171 commas (\(aq,\(aq), with the leading dot, which will be added to the list of
172 domains that should be trimmed.
174 .B RESOLV_OVERRIDE_TRIM_DOMAINS
175 A list of domains, separated by colons (\(aq:\(aq), semicolons (\(aq;\(aq) or
176 commas (\(aq,\(aq), with the leading dot, which will replace the list of
177 domains that should be trimmed.
184 Resolver configuration file
187 Resolver configuration file
192 The following differences exist compared to the original implementation.
195 and a new environment variable
196 .B RESOLV_SPOOF_CHECK
197 can take arguments like
198 .IR off ", " nowarn " and " warn .
199 Line comments can appear anywhere and not only at the beginning of a line.
201 .BR gethostbyname (3),