diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-29 21:09:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-29 21:09:25 +0000 |
commit | e1b58215a5e31afbab24e84b0dc64e7ba91478f7 (patch) | |
tree | af60fb6b00f4a195a6d471268e64c19fd25fd573 /etc/inc/system.inc | |
parent | 2589c9bdde99101f34cba92d511d9fb6a634ff8a (diff) | |
download | pfsense-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.inc | 3 |
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); |