mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
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
This commit is contained in:
parent
9d3b72ece5
commit
8afccfa91e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84133
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user