diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-25 23:59:59 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-03-25 23:59:59 +0545 |
commit | 4ad1ddf263983009405c844d262f8efa16261d6f (patch) | |
tree | 7c1cd2dc33d2011b01437e96564a489ff2cb73a8 /usr | |
parent | d5b28fcf94d5db726f8e5d9e1e80662df215b733 (diff) | |
download | pfsense-4ad1ddf263983009405c844d262f8efa16261d6f.zip pfsense-4ad1ddf263983009405c844d262f8efa16261d6f.tar.gz |
Only list nameservers once in resolv.conf
I was on a test system and had an upstream DNS server IP specified in System-General Setup. WAN was setup with a static IP and a gateway to that upstream device. All good.
Then I also checked "Allow DNS server list to be overridden by DHCP/PPP on WAN" and changed WAN to be DHCP. It received by DHCP the same DNS server IP that already happened to be in General Setup (and the same gateway IP - not the issue here).
/var/etc/resolv.conf had the name server line twice with the same IP address - once from the DHCP acquired data, and once from the General Setup data.
I don't think it broke anything, but it does look odd.
This change makes sure that DNS servers from General Setup are only added to resolv.conf when they are not already there.
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions