Penguin
Blame: host.conf(5)
EditPageHistoryDiffInfoLikePages
Annotated edit history of host.conf(5) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 HOST.CONF
2 !!!HOST.CONF
3 NAME
4 DESCRIPTION
5 FILES
6 SEE ALSO
7 ----
8 !!NAME
9
10
11 host.conf - resolver configuration file
12 !!DESCRIPTION
13
14
15 The file ''/etc/host.conf'' contains configuration
16 information specific to the resolver library. It should
17 contain one configuration keyword per line, followed by
18 appropriate configuration information. The keywords
19 recognized are ''order'', ''trim'', ''multi'',
20 ''nospoof'' and ''reorder''. Each keyword is described
21 seperately below.
22
23
24 ''order''
25
26
27 This keyword specifies how host lookups are to be performed.
28 It should be followed by one or more lookup methods,
29 seperated by commas. Valid methods are ''bind'',
30 ''hosts'' and ''nis''.
31
32
33 ''trim''
34
35
36 This keyword may be listed more than once. Each time it
37 should be followed by a single domain name, with the leading
38 dot. When set, the resolv+ library will automatically trim
39 the given domain name from the end of any hostname resolved
40 via DNS. This is intended for use with local hosts and
41 domains. (Related note: trim will not affect host- names
42 gathered via NIS or the hosts file. Care should be taken to
43 insure that the first hostname for each entry in the hosts
44 file is fully qualified or non-qualified, as appropriate for
45 the local installation.)
46
47
48 ''multi''
49
50
51 Valid values are ''on'' and ''off''. If set to
52 ''on'', the resolv+ library will return all valid
53 addresses for a host that appears in the ''/etc/hosts''
54 file, instead of only the first. This is ''off'' by
55 default, as it may cause a substantial performance loss at
56 sites with large hosts files.
57
58
59 ''nospoof''
60
61
62 Valid values are ''on'' and ''off''. If set to
63 ''on'', the resolv+ library will attempt to prevent
64 hostname spoofing to enhance the security of __rlogin__
65 and __rsh__. It works as follows: after performing a host
66 address lookup, resolv+ will perform a hostname lookup for
67 that address. If the two hostnames do not match, the query
68 will fail.
69
70
71 ''spoofalert''
72
73
74 If this option is set to ''on'' and the ''nospoof''
75 option is also set, resolv+ will log a warning of the error
76 via the syslog facility. The default value is
77 ''off''.
78
79
80 ''reorder''
81
82
83 Valid values are ''on'' and ''off''. If set to
84 ''on'', resolv+ will attempt to reorder host addresses so
85 that local addresses (i.e., on the same subnet) are listed
86 first when a gethostbyname(3) is performed.
87 Reordering is done for all lookup methods. The default value
88 is ''off''.
89 !!FILES
90
91
92 ''/etc/host.conf''
93
94
95 Resolver configuration file
96
97
98 ''/etc/resolv.conf''
99
100
101 Resolver configuration file
102
103
104 ''/etc/hosts''
105
106
107 Local hosts database
108 !!SEE ALSO
109
110
111 gethostbyname(3), hostname(7),
2 perry 112 resolv+(8), named(8)
1 perry 113 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.