Fix for issue where Cpanel::ZoneFile generated zones will fail to load properly due to missing $ORIGIN.

This commit is contained in:
Maff 2014-02-11 14:32:30 +00:00
parent 185b7a2b1d
commit f11c73d02a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }