CC: | z <csr1 [...] ziobro.rochester.ny.us> |
Subject: | Bug in initial handling of origin when no explicit $ORIGIN set |
Date: | Wed, 29 Oct 2014 05:02:26 -0400 |
To: | bug-Net-DNS-ZoneFile [...] rt.cpan.org |
From: | z <csr1 [...] ziobro.rochester.ny.us> |
I'm running Net::DNS::ZoneFile with the rwfranks fix of 2014/10/07 07:56.
Program:
use Net::DNS::ZoneFile;
$zonefile = new Net::DNS::ZoneFile( $ARGV[0] );
while ( $rr = $zonefile->read ) { $rr->print; }
INPUT:
@ IN A 0.0.0.0
Should yield:
@ IN A 0.0.0.0
but instead returns
. 0 IN A 0.0.0.0
The origin should be initialized to "" NOT ".". They are different!
The initial @ is determined by the /etc/named.conf file. There is no way
to know it just by reading a zone file.
Thanks!
Ciao,
//Z\\
Jim Ziobro