Net::DNS::ZoneFile::Fast::parse returns bad data after reading zone text containing $INCLUDE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnssec-tools (Debian) |
Fix Released
|
Unknown
|
|||
dnssec-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If I run Net::DNS:
Test script:
use Net::DNS:
use Data::Dumper;
open ZONE, 'something.com' or die;
$txt.=$_ while(<ZONE>);
close ZONE;
$r1=Net:
print Dumper($r1);
open ZONE, 'whatever.com' or die;
$moink.=$_ while(<ZONE>);
close ZONE;
$r2=Net:
print Dumper($r2);
Contents of 'something.com':
$TTL 1H
@ IN SOA ns0.something.com. hostmaster.
; Name servers
NS ns0.something.com.
NS ns1.something.com.
$INCLUDE "include-file"
Contents of 'whatever.com':
$TTL 1h
@ SOA ns0.whatever.com. hostmaster.
30m ; Refresh
10m ; Retry
10d ; Expire
30m ; Negative TTL
)
; Name servers
NS ns0.whatever.com.
NS ns1.whatever.com.
Contents of 'include-file':
wibble IN A 1.2.3.4
The second Dumper() output looks like
$VAR1 = [
bless( {
}, 'Net::DNS::RR::A' )
];
If I comment out the single entry in 'include-file', I get nothing at all:
$VAR1 = [];
but if I comment out the $INCLUDE directive, the results are correct:
$VAR1 = [
bless( {
}, 'Net::DNS::RR::SOA' ),
bless( {
}, 'Net::DNS::RR::NS' ),
bless( {
}, 'Net::DNS::RR::NS' )
];
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: dnssec-tools 1.13-1
ProcVersionSign
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Mon Nov 26 10:01:46 2012
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-05-04 (205 days ago)
InstallationMedia: Xubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitec
SourcePackage: dnssec-tools
UpgradeStatus: Upgraded to quantal on 2012-11-01 (24 days ago)
Changed in dnssec-tools (Debian): | |
status: | Unknown → Confirmed |
Changed in dnssec-tools (Debian): | |
status: | Confirmed → Fix Released |