diff options
author | ru <ru@FreeBSD.org> | 2001-09-29 12:20:08 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-09-29 12:20:08 +0000 |
commit | 16fb67106ee261aeb4cc7e12a1f4e3290393f6f5 (patch) | |
tree | 50d86ea33b95a2a71ac9e63ade300c5cdf574548 /etc | |
parent | 0e3b3037ac407e720e747bf6fa35c0846da1ea3f (diff) | |
download | FreeBSD-src-16fb67106ee261aeb4cc7e12a1f4e3290393f6f5.zip FreeBSD-src-16fb67106ee261aeb4cc7e12a1f4e3290393f6f5.tar.gz |
Backout revision 1.9 that added `myname.my.domain' as another alias for
`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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/hosts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,8 +7,8 @@ # not be consulted at all; see /etc/nsswitch.conf for the resolution order. # # -::1 localhost localhost.my.domain myname.my.domain -127.0.0.1 localhost localhost.my.domain myname.my.domain +::1 localhost localhost.my.domain +127.0.0.1 localhost localhost.my.domain # # Imaginary network. #10.0.0.2 myname.my.domain myname |