Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 13944
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: OLAF [...] cpan.org
Requestors: jakob [...] rfc.se
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.53
Fixed in: (no value)



Subject: RR/SRV rdatastr
use Net::DNS; my $srv = Net::DNS::RR->new("_nicname._tcp.se. 86400 IN SRV 0 0 43 whois.nic-se.se."); $srv->print; _nicname._tcp.se. 86400 IN SRV 0 0 43 whois.nic-se.se fix, perhaps something like this - dunno if target can be . terminate already in some cases. --- SRV.pm.orig Mon Aug 1 11:22:34 2005 +++ SRV.pm Mon Aug 1 11:22:25 2005 @@ -42,6 +42,7 @@ if (exists $self->{'priority'}) { $rdatastr = join(' ', @{$self}{qw(priority weight port target)}); + $rdatastr =~ s/(.*[^\.])$/$1./; } else { $rdatastr = ''; }
[guest - Mon Aug 1 05:23:16 2005]: Show quoted text
> fix, perhaps something like this - dunno if target can be . terminate > already in some cases.
I've applied the patch like you provided. In general the internal representation of dnames is in FQDN presentation format, but without the trailing dot. In the parsing code in SVR a zone name like "foo\.." would probably two dots to be stripped. It is somewhat of a bigger project to do an audit for these sort of cases. (I'll stall the ticket for this) The patch lives on the svn trunk as of version 483.
[guest - Mon Aug 1 05:23:16 2005]: Show quoted text
> fix, perhaps something like this - dunno if target can be . terminate > already in some cases.
I've applied the patch like you provided. In general the internal representation of dnames is in FQDN presentation format, but without the trailing dot. In the parsing code in SVR a zone name like "foo\.." would probably two dots to be stripped. It is somewhat of a bigger project to do an audit for these sort of cases. (I'll stall the ticket for this) The patch lives on the svn trunk as of version 483.
The issue is resolved. The audit can be done without this ticket as a reminder.