diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2007-08-02 08:31:04 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2007-08-02 08:31:04 +0000 |
commit | 1ebf937f1214713b69d56ecf72be8384c303525d (patch) | |
tree | f6c01f3be87e05d33afa9eb9989fa1205fdfbc9b /usr | |
parent | f9b3f262c4524f77f2faee4a8500bf58aedf091a (diff) | |
download | pfsense-1ebf937f1214713b69d56ecf72be8384c303525d.zip pfsense-1ebf937f1214713b69d56ecf72be8384c303525d.tar.gz |
DHCP: domainname / HEAD > RELENG_1
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index a51d842..b209592 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -65,6 +65,7 @@ $pconfig['range_to'] = $config['dhcpd'][$if]['range']['to']; $pconfig['deftime'] = $config['dhcpd'][$if]['defaultleasetime']; $pconfig['maxtime'] = $config['dhcpd'][$if]['maxleasetime']; $pconfig['gateway'] = $config['dhcpd'][$if]['gateway']; +$pconfig['domain'] = $config['dhcpd'][$if]['domain']; list($pconfig['wins1'],$pconfig['wins2']) = $config['dhcpd'][$if]['winsserver']; list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpd'][$if]['dnsserver']; $pconfig['enable'] = isset($config['dhcpd'][$if]['enable']); @@ -195,6 +196,7 @@ if ($_POST) { $config['dhcpd'][$if]['dnsserver'][] = $_POST['dns2']; $config['dhcpd'][$if]['gateway'] = $_POST['gateway']; + $config['dhcpd'][$if]['domain'] = $_POST['domain']; $config['dhcpd'][$if]['denyunknown'] = ($_POST['denyunknown']) ? true : false; $config['dhcpd'][$if]['enable'] = ($_POST['enable']) ? true : false; $config['dhcpd'][$if]['staticarp'] = ($_POST['staticarp']) ? true : false; @@ -280,6 +282,7 @@ function enable_change(enable_over) { document.iform.maxtime.disabled = endis; document.iform.gateway.disabled = endis; document.iform.failover_peerip.disabled = endis; + document.iform.domain.disabled = endis; document.iform.staticarp.disabled = endis; document.iform.ddnsdomain.disabled = endis; document.iform.ddnsupdate.disabled = endis; @@ -439,6 +442,13 @@ function show_netboot_config() { The default is to use the IP of the firewall as the gateway. Specify an alternate gateway here if this is not the correct gateway for your network. </td> </tr> + <tr> + <td width="22%" valign="top" class="vncell">Domain-Name</td> + <td width="78%" class="vtable"> + <input name="domain" type="text" class="formfld" id="domain" size="20" value="<?=htmlspecialchars($pconfig['domain']);?>"><br> + The default is to use the domainname of the router as DNS-Search string that is served via DHCP. Specify an alternate DNS-Search string here. + </td> + </tr> <tr> <td width="22%" valign="top" class="vncell">Default lease time</td> |