summaryrefslogtreecommitdiffstats
path: root/etc/hosts
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-29 12:20:08 +0000
committerru <ru@FreeBSD.org>2001-09-29 12:20:08 +0000
commit16fb67106ee261aeb4cc7e12a1f4e3290393f6f5 (patch)
tree50d86ea33b95a2a71ac9e63ade300c5cdf574548 /etc/hosts
parent0e3b3037ac407e720e747bf6fa35c0846da1ea3f (diff)
downloadFreeBSD-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/hosts')
-rw-r--r--etc/hosts4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/hosts b/etc/hosts
index 57b516f..1e29598 100644
--- a/etc/hosts
+++ b/etc/hosts
@@ -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
OpenPOWER on IntegriCloud