Fix for issue where Cpanel::ZoneFile generated zones will fail to load properly due to missing $ORIGIN.
This commit is contained in:
parent
185b7a2b1d
commit
f11c73d02a
|
@ -100,7 +100,7 @@ sub get_zone_array {
|
||||||
my $ip = shift;
|
my $ip = shift;
|
||||||
my ($rec,$zone) = get_arpa $ip;
|
my ($rec,$zone) = get_arpa $ip;
|
||||||
return unless does_zone_exist $ip;
|
return unless does_zone_exist $ip;
|
||||||
my $zf = new Net::DNS::ZoneFile("$zone_dir/$zone$zone_ext");
|
my $zf = new Net::DNS::ZoneFile("$zone_dir/$zone$zone_ext", $zone);
|
||||||
my @z = $zf->read;
|
my @z = $zf->read;
|
||||||
return @z;
|
return @z;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue