summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-29 21:09:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-29 21:09:25 +0000
commite1b58215a5e31afbab24e84b0dc64e7ba91478f7 (patch)
treeaf60fb6b00f4a195a6d471268e64c19fd25fd573 /etc/inc/system.inc
parent2589c9bdde99101f34cba92d511d9fb6a634ff8a (diff)
downloadpfsense-e1b58215a5e31afbab24e84b0dc64e7ba91478f7.zip
pfsense-e1b58215a5e31afbab24e84b0dc64e7ba91478f7.tar.gz
Until dhclient-script can be cleaned up a little more, work around nameserver nameserver foo bug
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index e0d6dfb..1283ba1 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -64,12 +64,15 @@ function system_resolvconf_generate($dynupdate = false) {
if (!$havedns && is_array($syscfg['dnsserver'])) {
foreach ($syscfg['dnsserver'] as $ns) {
if ($ns) {
+
$resolvconf .= "nameserver $ns\n";
$havedns = true;
}
}
}
+ $ns = str_replace("nameserver nameserver ", "nameserver ", $resolvconf);
+
fwrite($fd, $resolvconf);
fclose($fd);
OpenPOWER on IntegriCloud