From 8afccfa91e32a55a3cc36021441a4598bbce8385 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sat, 29 Sep 2001 12:20:08 +0000 Subject: [PATCH] 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 MFC after: 1 week --- etc/hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/hosts b/etc/hosts index 57b516fda037..1e29598c37c3 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