summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-30 02:14:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-30 02:14:39 +0000
commitf8e7ad3f46f9f4e057b538f44d507ebe1b5fa6cd (patch)
treec96e4ef29776f8a33ff2fb42fbc8f4fd8a7946a9 /usr
parentaff9d6ab2905f5e29295e07e3cd5e1a7c1d32b5c (diff)
downloadpfsense-f8e7ad3f46f9f4e057b538f44d507ebe1b5fa6cd.zip
pfsense-f8e7ad3f46f9f4e057b538f44d507ebe1b5fa6cd.tar.gz
Move DNS to pool area
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 6f8922d..1c3fcbf 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -151,10 +151,13 @@ if ($_POST) {
if ($_POST['wins2'])
$config['dhcpd'][$if]['winsserver'][] = $_POST['wins2'];
- if ($_POST['dns1'])
+ if ($_POST['dns1']) {
+ unset($config['dhcpd'][$if]['dnsserver']);
$config['dhcpd'][$if]['dnsserver'][] = $_POST['dns1'];
- if ($_POST['dns2'])
+ }
+ if ($_POST['dns2']) {
$config['dhcpd'][$if]['dnsserver'][] = $_POST['dns2'];
+ }
$config['dhcpd'][$if]['gateway'] = $_POST['gateway'];
OpenPOWER on IntegriCloud