Bug #567
closedFirewall's hostname gets multiple hosts entries
0%
Description
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.
Updated by Seth Mos over 14 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
Edit:
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
Edit2:
It appears that get_interface_ip() is failing to return the LAN address during bootup.
Updated by Seth Mos over 14 years ago
- Status changed from Feedback to Resolved
Recreated the hosts file after configuring interfaces so that it is created properly. Verified this fixes 567