Révision 3d88ea11
Ajouté par Phil Davis il y a plus de 9 ans
usr/local/www/services_dhcpv6.php | ||
---|---|---|
106 | 106 |
$pconfig['domain'] = $config['dhcpdv6'][$if]['domain']; |
107 | 107 |
$pconfig['domainsearchlist'] = $config['dhcpdv6'][$if]['domainsearchlist']; |
108 | 108 |
list($pconfig['wins1'],$pconfig['wins2']) = $config['dhcpdv6'][$if]['winsserver']; |
109 |
list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpdv6'][$if]['dnsserver']; |
|
109 |
list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4']) = $config['dhcpdv6'][$if]['dnsserver'];
|
|
110 | 110 |
$pconfig['enable'] = isset($config['dhcpdv6'][$if]['enable']); |
111 | 111 |
$pconfig['ddnsdomain'] = $config['dhcpdv6'][$if]['ddnsdomain']; |
112 | 112 |
$pconfig['ddnsdomainprimary'] = $config['dhcpdv6'][$if]['ddnsdomainprimary']; |
... | ... | |
184 | 184 |
$input_errors[] = gettext("A valid range must be specified."); |
185 | 185 |
if (($_POST['gateway'] && !is_ipaddrv6($_POST['gateway']))) |
186 | 186 |
$input_errors[] = gettext("A valid IPv6 address must be specified for the gateway."); |
187 |
if (($_POST['dns1'] && !is_ipaddrv6($_POST['dns1'])) || ($_POST['dns2'] && !is_ipaddrv6($_POST['dns2']))) |
|
188 |
$input_errors[] = gettext("A valid IPv6 address must be specified for the primary/secondary DNS servers.");
|
|
187 |
if (($_POST['dns1'] && !is_ipaddrv6($_POST['dns1'])) || ($_POST['dns2'] && !is_ipaddrv6($_POST['dns2'])) || ($_POST['dns3'] && !is_ipaddrv6($_POST['dns3'])) || ($_POST['dns4'] && !is_ipaddrv6($_POST['dns4'])))
|
|
188 |
$input_errors[] = gettext("A valid IPv6 address must be specified for each of the DNS servers.");
|
|
189 | 189 |
|
190 | 190 |
if ($_POST['deftime'] && (!is_numeric($_POST['deftime']) || ($_POST['deftime'] < 60))) |
191 | 191 |
$input_errors[] = gettext("The default lease time must be at least 60 seconds."); |
... | ... | |
295 | 295 |
$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns1']; |
296 | 296 |
if ($_POST['dns2']) |
297 | 297 |
$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns2']; |
298 |
if ($_POST['dns3']) |
|
299 |
$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns3']; |
|
300 |
if ($_POST['dns4']) |
|
301 |
$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns4']; |
|
298 | 302 |
|
299 | 303 |
$config['dhcpdv6'][$if]['domain'] = $_POST['domain']; |
300 | 304 |
$config['dhcpdv6'][$if]['domainsearchlist'] = $_POST['domainsearchlist']; |
... | ... | |
404 | 408 |
document.iform.prefixrange_length.disabled = endis; |
405 | 409 |
document.iform.dns1.disabled = endis; |
406 | 410 |
document.iform.dns2.disabled = endis; |
411 |
document.iform.dns3.disabled = endis; |
|
412 |
document.iform.dns4.disabled = endis; |
|
407 | 413 |
document.iform.deftime.disabled = endis; |
408 | 414 |
document.iform.maxtime.disabled = endis; |
409 | 415 |
//document.iform.gateway.disabled = endis; |
... | ... | |
625 | 631 |
<td width="78%" class="vtable"> |
626 | 632 |
<input name="dns1" type="text" class="formfld unknown" id="dns1" size="28" value="<?=htmlspecialchars($pconfig['dns1']);?>" /><br /> |
627 | 633 |
<input name="dns2" type="text" class="formfld unknown" id="dns2" size="28" value="<?=htmlspecialchars($pconfig['dns2']);?>" /><br /> |
634 |
<input name="dns3" type="text" class="formfld unknown" id="dns3" size="28" value="<?=htmlspecialchars($pconfig['dns3']);?>" /><br /> |
|
635 |
<input name="dns4" type="text" class="formfld unknown" id="dns4" size="28" value="<?=htmlspecialchars($pconfig['dns4']);?>" /><br /> |
|
628 | 636 |
<?=gettext("NOTE: leave blank to use the system default DNS servers - this interface's IP if DNS forwarder is enabled, otherwise the servers configured on the General page.");?> |
629 | 637 |
</td> |
630 | 638 |
</tr> |
Formats disponibles : Unified diff
Support up to 4 DNS Servers in DHCP