CC: | NNIS-10017 [...] jira.noris.de |
Subject: | Net::DNS ≥ 1.06_06 generates broken SOA RRs |
That is, the parentheses around the RDATA values are missing:
$ perl -Ilib -MNet::DNS -E 'say Net::DNS->VERSION;$soa=Net::DNS::RR->new("@ARGV");say$soa->rdatastr' 'name SOA mname rname 0 14400 3600 1814400 3600'
1.0606
mname. rname.
0 ;serial
14400 ;refresh
3600 ;retry
1814400 ;expire
3600 ;minimum
In older versions they were OK:
$ perl -Ilib -MNet::DNS -E 'say Net::DNS->VERSION;$soa=Net::DNS::RR->new("@ARGV");say$soa->rdatastr' 'name SOA mname rname 0 14400 3600 1814400 3600'
1.06
( mname. rname.
0 ;serial
14400 ;refresh
3600 ;retry
1814400 ;expire
3600 ;minimum
)
The functionality was probably broken by the following commit:
commit 24621a508c1ac518e1a518b3be4ecff80a6be89c
Author: willem <willem@a29f3fcb-687d-e111-8194-001676cd6a66>
Date: Tue Jun 7 09:04:50 2016 +0000
Generic method for annotating formatted rdata with comments
git-svn-id: https://www.net-dns.org/svn/net-dns/trunk@1488 a29f3fcb-687d-e111-8194-001676cd6a66