Project

General

Profile

Feature #6038

Add ability to configure which interface is chosen for defining hostname IP in /etc/hosts

Added by Andrew M over 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
-
Start date:
03/29/2016
Due date:
% Done:

0%

Estimated time:

Description

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.

History

#1 Updated by Nicki Messerschmidt over 3 years ago

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.

#2 Updated by tqwqllrm tqwqllrm about 2 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.

Also available in: Atom PDF