Subject: | Change in $rr->string output |
Date: | Mon, 7 Mar 2016 06:19:34 -0800 |
To: | bug-net-dns [...] rt.cpan.org |
From: | Stuart Kendrick <stuart.kendrick.sea [...] gmail.com> |
I am upgrading from v0.83 to v1.04
I believe I am seeing a change in how the string method outputs CNAME records.
Code Snippet
@zone = $res->axfer($zone);
for my $rr (@zone) {
my $record = $rr->string;
print $record;
}
Under v0.83, I see A Records and CNAME Records as follows:
AIADFSPROXY.company.com. 3600 IN A 10.70.44.78
aiadfsproxy1rib. company.com. 3600 IN CNAME
aigate.company.com
Under v1.04, I see A Records and CNAME Records as follows:
AIADFSPROXY.company.com. 3600 IN A 10.70.44.78
aiadfsproxy1rib. company.com. 3600 IN CNAME (
aigate.company.com. )
Notice two changes under v1.04:
The CNAME record splits into two lines (a carriage return appears after ‘(‘
The introduction of parentheses around the target record
(aigate.company.com in the example above)
This smells like a bug to me, as it makes parsing the result difficult
(records split across multiple lines, rather than being returned as a
single line).
--sk