diff options
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r-- | src/usr/local/www/services_dhcpv6.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php index e1c3e8c..e8ac503 100644 --- a/src/usr/local/www/services_dhcpv6.php +++ b/src/usr/local/www/services_dhcpv6.php @@ -132,6 +132,8 @@ if (is_array($config['dhcpdv6'][$if])) { $pconfig['ddnsdomainkeyname'] = $config['dhcpdv6'][$if]['ddnsdomainkeyname']; $pconfig['ddnsdomainkey'] = $config['dhcpdv6'][$if]['ddnsdomainkey']; $pconfig['ddnsupdate'] = isset($config['dhcpdv6'][$if]['ddnsupdate']); + $pconfig['ddnsreverse'] = isset($config['dhcpdv6'][$if]['ddnsreverse']); + $pconfig['ddnsclientupdates'] = $config['dhcpdv6'][$if]['ddnsclientupdates']; list($pconfig['ntp1'], $pconfig['ntp2']) = $config['dhcpdv6'][$if]['ntpserver']; $pconfig['tftp'] = $config['dhcpdv6'][$if]['tftp']; $pconfig['ldap'] = $config['dhcpdv6'][$if]['ldap']; @@ -364,6 +366,8 @@ if ($_POST) { $config['dhcpdv6'][$if]['ddnsdomainkeyname'] = $_POST['ddnsdomainkeyname']; $config['dhcpdv6'][$if]['ddnsdomainkey'] = $_POST['ddnsdomainkey']; $config['dhcpdv6'][$if]['ddnsupdate'] = ($_POST['ddnsupdate']) ? true : false; + $config['dhcpdv6'][$if]['ddnsreverse'] = ($_POST['ddnsreverse']) ? true : false; + $config['dhcpdv6'][$if]['ddnsclientupdates'] = $_POST['ddnsclientupdates']; unset($config['dhcpdv6'][$if]['ntpserver']); if ($_POST['ntp1']) { @@ -729,6 +733,26 @@ $section->addInput(new Form_Input( $pconfig['ddnsdomainkey'] ))->setHelp('Enter the dynamic DNS domain key secret which will be used to register client names in the DNS server.'); +$section->addInput(new Form_Select( + 'ddnsclientupdates', + 'DDNS Client Updates', + $pconfig['ddnsclientupdates'], + array( + 'allow' => gettext('Allow'), + 'deny' => gettext('Deny'), + 'ignore' => gettext('Ignore')) +))->setHelp('How Forward entries are handled when client indicates they wish to update DNS. ' . + 'Allow prevents DHCP from updating Forward entries, Deny indicates that DHCP will ' . + 'do the updates and the client should not, Ignore specifies that DHCP will do the ' . + 'update and the client can also attempt the update usually using a different domain name.'); + +$section->addInput(new Form_Checkbox( + 'ddnsreverse', + 'DDNS Reverse', + 'Add reverse dynamic DNS entries.', + $pconfig['ddnsreverse'] +)); + $btnntp = new Form_Button( 'btnntp', 'Advanced' @@ -967,6 +991,8 @@ events.push(function() { hideInput('ddnsdomainprimary', hide); hideInput('ddnsdomainkeyname', hide); hideInput('ddnsdomainkey', hide); + hideInput('ddnsclientupdates', hide); + hideCheckbox('ddnsreverse', hide); } // Make the 'Copy My MAC' button a plain button, not a submit button |