16fb67106e
`localhost'. If your /etc/nsswitch.conf has ``hosts: files dns'', and you changed `myname.my.domain' in /etc/hosts to match hostname(1), and you run inetd(8) with the -l option, any connect to `myname' using its real IP address through inetd(8), e.g. `ftp -a myname', will spam your /var/log/messages with: inetd[PID]: warning: /etc/hosts.allow, line 23: host name/name mismatch: myname.my.domain != localhost This is especially bad for -STABLE, where /etc/host.conf defaults to "files first then DNS" resolution order. Noticed by: Igor Kucherenko <kivvy@sunbay.com> MFC after: 1 week
30 lines
988 B
Plaintext
30 lines
988 B
Plaintext
# $FreeBSD$
|
|
#
|
|
# Host Database
|
|
# This file should contain the addresses and aliases
|
|
# for local hosts that share this file.
|
|
# In the presence of the domain name service or NIS, this file may
|
|
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
|
|
#
|
|
#
|
|
::1 localhost localhost.my.domain
|
|
127.0.0.1 localhost localhost.my.domain
|
|
#
|
|
# Imaginary network.
|
|
#10.0.0.2 myname.my.domain myname
|
|
#10.0.0.3 myfriend.my.domain myfriend
|
|
#
|
|
# According to RFC 1918, you can use the following IP networks for
|
|
# private nets which will never be connected to the Internet:
|
|
#
|
|
# 10.0.0.0 - 10.255.255.255
|
|
# 172.16.0.0 - 172.31.255.255
|
|
# 192.168.0.0 - 192.168.255.255
|
|
#
|
|
# In case you want to be able to connect to the Internet, you need
|
|
# real official assigned numbers. PLEASE PLEASE PLEASE do not try
|
|
# to invent your own network numbers but instead get one from your
|
|
# network provider (if any) or from the Internet Registry (ftp to
|
|
# rs.internic.net, directory `/templates').
|
|
#
|