[BlueOnyx:24135] Re: problems with fixhosts.pl
Larry Smith
lesmith at ecsis.net
Sat Jul 25 09:24:45 -05 2020
On Fri July 24 2020 16:48, Michael Stauber wrote:
> 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?
Not how it works here on a 5209R: (fairly new load)
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.localdomain localhost
<primary-ip>.129 jweb2.<fqdn> jweb2
# Entries for all other IP addresses bound to this server:
<primary-ip>.132 jweb2.<fqdn> jweb2
<primary-ip>.133 jweb2.<fqdn> jweb2
<primary-ip>.100 jweb2.<fqdn> jweb2
<primary-ip>.131 jweb2.<fqdn> jweb2
<primary-ip>.130 jweb2.<fqdn> jweb2
# Entries for all Vsites on IP addresses of this server:
<primary-ip>.132 ucp.some.com ucp
<primary-ip>.133 lcm.another.com lcm
<primary-ip>.100 wcp.more.com wcp
<primary-ip>.131 mail.plenty.com mail
<primary-ip>.130 www.even.some.us www
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# END of auto-generated code. Customize beneath this line.
With line 42 commented out, the "all other IP addresses" section
is not there leaving just the vsites and the server itself.
--
Larry Smith
lesmith@<fqdn>
More information about the Blueonyx
mailing list