[BlueOnyx:24134] Re: problems with fixhosts.pl
Michael Stauber
mstauber at blueonyx.it
Fri Jul 24 16:48:52 -05 2020
Hi Larry,
> 5208R and 5209R both appear to have the same fixhosts.pl
> Haven't looked at the 5210 yet.
Very well.
> Is there any good reason why the current fixhosts.pl
> adds an entry for every IP on the box with the name
> of the box itself ??
I just checked. It does this:
-----------------------------------------------------------
~]# cat /etc/hosts
# /etc/hosts
# Auto-generated file. Please put your customizations at the very end.
# Entries for localhost and primary IP address:
127.0.0.1 localhost localhost.localdomain
<primary-IP> <Hostname> <name>
# Entries for all Vsites on IPv4 IP addresses of this server:
<IP> <Vsite-FQDN> <Alias>
...
<IP> <Vsite-FQDN> <Alias>
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
-----------------------------------------------------------
So it creates entries for localhost and the hostname, then entries for
each Vsite and their IPs and finally the IPv6 stuff.
That's how it should be. Isn't it?
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list