summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-03-25 23:59:59 +0545
committerPhil Davis <phil.davis@inf.org>2015-03-25 23:59:59 +0545
commit4ad1ddf263983009405c844d262f8efa16261d6f (patch)
tree7c1cd2dc33d2011b01437e96564a489ff2cb73a8 /usr
parentd5b28fcf94d5db726f8e5d9e1e80662df215b733 (diff)
downloadpfsense-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
OpenPOWER on IntegriCloud