summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-27 21:50:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-27 21:50:27 +0000
commit4cab31d08db0314b3fa69d83f7a20ee54c8d2f9d (patch)
treea63eb320ffe7dc809a868b8aafb6197682183d98 /etc
parent18547c5dd36e69452db72098f444e0eddf38175c (diff)
downloadpfsense-4cab31d08db0314b3fa69d83f7a20ee54c8d2f9d.zip
pfsense-4cab31d08db0314b3fa69d83f7a20ee54c8d2f9d.tar.gz
Add DNS server options specific for each DHCP subnet
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index d66b10a..9ea3aca 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -67,6 +67,8 @@ function services_dhcpd_configure() {
return 1;
}
+
+
$dhcpdconf = <<<EOD
option domain-name "{$syscfg['domain']}";
default-lease-time 7200;
@@ -196,6 +198,10 @@ EOD;
$dhcpdconf .= " option netbios-node-type 8;\n";
}
+ if (is_array($dhcpifconf['winsserver']) && $dhcpifconf['winsserver'][0]) {
+ $dhcpdconf .= " option domain-name-servers " . join(",", $dhcpifconf['dns']) . ";\n";
+ }
+
if ($dhcpifconf['next-server'])
$dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n";
if ($dhcpifconf['filename'])
OpenPOWER on IntegriCloud