Project

General

Profile

Actions

Feature #6038

open

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

Added by Andrew M about 8 years ago. Updated almost 7 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:

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.

Actions #1

Updated by Nicki Messerschmidt almost 8 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.

Actions #2

Updated by tqwqllrm tqwqllrm almost 7 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.

Actions

Also available in: Atom PDF