Subject: | No brackets around multi-line RRs any more? |
Consider the following record, generated in our tests:
DB<9> x $rr
0 Net::DNS::RR::SOA=HASH(0x19da0e28)
'expire' => 604800
'minimum' => 10800
'mname' => Net::DNS::DomainName1035=HASH(0x1a253618)
'label' => ARRAY(0x1a27e1b0)
0 'ns'
1 'example'
2 'org'
'owner' => Net::DNS::DomainName1035=HASH(0x1a21dfb8)
'label' => ARRAY(0x1a2650b8)
0 'example'
1 'com'
'name' => 'example.com'
'refresh' => 14400
'retry' => 3600
'rname' => Net::DNS::Mailbox1035=HASH(0x1a2555d0)
'label' => ARRAY(0x1a223760)
0 'sn'
1 'example'
2 'org'
'serial' => 1439185151
'ttl' => 86400
'type' => 6
In Net::DNS 1.06, $rr->rdstring is wrapped with brackets:
DB<10> print $rr->rdstring
( ns.example.org. sn.example.org.
1439185151 ;serial
14400 ;refresh
3600 ;retry
604800 ;expire
10800 ;minimum
)
In Net::DNS 1.07 (a change introduced, I believe, in 1.06_01), there are no brackets:
DB<4> print $rr->rdstring
ns.example.org. sn.example.org.
1439185151 ;serial
14400 ;refresh
3600 ;retry
604800 ;expire
10800 ;minimum
I believe this change was introduced in the refactor of Net::DNS::RR::rdstring to use the wrap method. Was this deliberate?