Firewall's hostname gets multiple hosts entries
In /etc/hosts, the firewall's hostname is entered once for each interface IP. This leaves you with a round robin DNS on that hostname, such as:
hamakua.buechler.local. 1 IN A 192.168.4.2
hamakua.buechler.local. 1 IN A 10.0.64.120
hamakua.buechler.local. 1 IN A 192.168.22.1
hamakua.buechler.local. 1 IN A 192.168.2.1
hamakua.buechler.local. 1 IN A 192.168.3.1
In 1.2.x and earlier, only the LAN IP is entered in hosts. Many users rely on this behavior, and returning a round robin record is a bit silly.
Ticket #567. Create an entry on hosts file with the ip address of lan or the first inerface ip without a gateway if lan is not present.
#2 Updated by Seth Mos about 9 years ago
On a snapshot from 2010-05-16 it only writes the localhost entry.
Seen on multiple upgraded installs.
# more /etc/hosts 127.0.0.1 localhost localhost.coltex.nl
running system_hosts_generate(); manually from the command page works and generates the proper file. After a reboot the file only contains the localhost entry
It appears that get_interface_ip() is failing to return the LAN address during bootup.