[net-dns-users] Bug with large txt RR ?
Jarle Greipsland
jarle.greipsland at norid.no
Wed Oct 7 12:09:52 UTC 2026
Håkon Alstadheim via net-dns-users <net-dns-users at lists.nlnetlabs.nl> writes:
> I'm getting txt RRs for euronext.com, looking for the v=spf1
> record. I get a split record, shown as dumped from Dumper.
[ ... ]
> When getting the text value by 'print $rr->rdstring' (not
> shown), the quoting is messed up at the 511th
> character. $rr-txtdata is likewise messed up, it splits at the
> problematic point "include:478860 1.spf03.hu" has a space where
> there should be none.
You mean it does what is it documented to do? From the man page
for Net::DNS::RR::TXT:
When invoked in scalar context, txtdata() returns a concatenation of the
descriptive text elements each separated by a single space character.
Try adding the line
print "txtdatj:|" . join("", $rr->txtdata) . "|\n";
to your shell/perl command line, and study the results.
-jarle
--
"You know it's cold outside when you go outside and it's cold."
More information about the net-dns-users
mailing list