---- Changes since 1.530 ----
The default view for new zones can now be set via an option on the Module Config page.
When adding cluster slave servers, their IPs are added to the also-notify and allow-transfer blocks of each domain added to the slave.
+IPv6 addresses can now be used for remote nameservers in slave and delegation zones.
if ($_[3] == 0) {
# text area
return &ui_table_row($_[0],
- &ui_textarea($_[1], join("\n", @av), 3, 15));
+ &ui_textarea($_[1], join("\n", @av), 3, 50));
}
else {
# text row
local ($i, $ip, $pr, @vals);
for($i=0; defined($ip = $in{"$_[0]_ip_$i"}); $i++) {
next if (!$ip);
- &check_ipaddress($ip) || &error(&text('eip', $ip));
+ &check_ipaddress($ip) || &check_ip6address($ip) ||
+ &error(&text('eip', $ip));
$pr = $in{"$_[0]_pr_${i}_def"} ? undef : $in{"$_[0]_pr_$i"};
!$pr || $pr =~ /^\d+$/ || &error(&text('eport', $pr));
push(@vals, { 'name' => $ip,
if ($in{'rev'}) {
local($ipv4);
($ipv4 = &check_net_ip($in{'zone'})) ||
- $config{'support_aaaa'} &&
- (($in{'zone'} =~ /^([\w:]+)(\/\d+)$/) || &check_ip6address($1)) ||
+ $config{'support_aaaa'} &&
+ (($in{'zone'} =~ /^([\w:]+)(\/\d+)$/) || &check_ip6address($1)) ||
&error(&text('create_enet', $in{'zone'}));
if ($ipv4) {
$in{'zone'} = &ip_to_arpa($in{'zone'});
$in{'zone'} =~ s/\.$//;
@masters = split(/\s+/, $in{'masters'});
foreach $m (@masters) {
- &check_ipaddress($m) ||
+ &check_ipaddress($m) || &check_ip6address($m) ||
&error(&text('create_emaster', $m));
}
#if (!@masters) {
$masterport = $in{'port_def'} ? undef : $in{'port'};
@masters = split(/\s+/, $in{'masters'});
foreach $m (@masters) {
- &check_ipaddress($m) ||
+ &check_ipaddress($m) || &check_ip6address($m) ||
&error(&text('create_emaster', $m));
}
if (!@masters) {