diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 21:50:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 21:50:27 +0000 |
commit | 4cab31d08db0314b3fa69d83f7a20ee54c8d2f9d (patch) | |
tree | a63eb320ffe7dc809a868b8aafb6197682183d98 /etc | |
parent | 18547c5dd36e69452db72098f444e0eddf38175c (diff) | |
download | pfsense-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.inc | 6 |
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']) |