host.conf(5) File Formats Manual host.conf(5) host.conf - /etc/host.conf (resolver). , . : trim This keyword may be listed more than once. Each time it should be followed by a list of domains, separated by colons (':'), semicolons (';') or commas (','), with the leading dot. When set, the resolver library will automatically trim the given domain name from the end of any hostname resolved via DNS. This is intended for use with local hosts and domains. (Related note: trim will not affect hostnames gathered via NIS or the hosts(5) file. Care should be taken to ensure that the first hostname for each entry in the hosts file is fully qualified or unqualified, as appropriate for the local installation.) multi on off. on, , /etc/hosts, . off, . reorder on off. on, , (. . ) , gethostbyname(3). . off. , , , /etc/host.conf: RESOLV_HOST_CONF , /etc/host.conf. RESOLV_MULTI multi. RESOLV_REORDER reorder. RESOLV_ADD_TRIM_DOMAINS A list of domains, separated by colons (':'), semicolons (';'), or commas (','), with the leading dot, which will be added to the list of domains that should be trimmed. RESOLV_OVERRIDE_TRIM_DOMAINS A list of domains, separated by colons (':'), semicolons (';'), or commas (','), with the leading dot, which will replace the list of domains that should be trimmed. Overrides the trim command. /etc/host.conf /etc/resolv.conf /etc/hosts : spoof RESOLV_SPOOF_CHECK off, nowarn warn. , . nsswitch.conf(5). glibc 2.4 , : order , . , . : bind, hosts nis. RESOLV_SERV_ORDER order. glibc 2.0.7 2.24 , : nospoof on off on, rlogin and rsh. : , . , . off. spoofalert on off. on nospoof, syslog. off. spoof off, nowarn warn. off, syslog . warn, syslog . nowarn, , . nowarn. RESOLV_SPOOF_CHECK nospoof, spoofalert spoof spoof. off, nowarn warn. . gethostbyname(3), hosts(5), nsswitch.conf(5), resolv.conf(5), hostname(7), named(8) Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . host.conf(5)