Add ability to configure which interface is chosen for defining hostname IP in /etc/hosts
It would be useful to be able to define from which interface this hostname to IP mapping is defined, in the event that your management network is not on the "LAN" network. This could be a menu option somewhere in the General Settings page or a checkbox on the target interface's page.
Presently, system.inc defines the hostname to IP mapping of pfSense to the LAN interface. That is, name resolution lookups using unbound or dnsmasq use this generated value in /etc/hosts whenever you try to resolve the hostname or FQDN of the pfSense instance.
#2 Updated by tqwqllrm tqwqllrm almost 4 years ago
Nicki Messerschmidt wrote:
I stumbled over this problem also. In my case I have several LAN interfaces and the wrong one gets registered in /etc/hosts.
I think it would be nice to choose which interface(s) should be registered.
I 2nd this also. Still a problem. Manual edits to /etc/hosts don't keep after reboot. DNS overrides just end up returning both the wrong IP and the override IP to DNS requests.