Skip Menu |

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

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

People
Owner: OLAF [...] cpan.org
Requestors: entwicklung [...] ticket.noris.net
FANY [...] cpan.org
Cc: 10079241 [...] ticket.noris.net
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.65
Fixed in: (no value)



CC: 10079241 [...] ticket.noris.net
Subject: warning for MX RRs with exchange "."
From my understanding of the documentation to Net::DNS::RR, the trailing dot to FQDNs should be optional when creating such objects. However, when I omit it, the edge case of creating an MX-RR with "." as (pseudo) exchange still works, but emits a warning: zoneedit@dns0:~ > perl -wMNet::DNS -e 'Net::DNS::RR->new_from_hash( name=>"foo", type=>"MX", preference=>0, exchange=>"" )->print' Use of uninitialized value $name in scalar chop at /usr/lib/perl5/Net/DNS.pm line 473. foo. 0 IN MX 0 . This can also be reproduced by running the test suite for the current version 1.12 of Net::DNS::ZoneFile::Fast in conjunction with Net::DNS 0.65. (Also see ticket 39362.) Regards, fany
Subject: Re: [rt.cpan.org #52893] warning for MX RRs with exchange "."
Date: Fri, 18 Dec 2009 13:59:44 +0100
To: bug-Net-DNS [...] rt.cpan.org
From: Olaf Kolkman <olaf [...] dacht.net>
This could be fixed as part of : Fix rt.cpan.org #51009 Fixed handling of empty string in Net::DNS::stripdot. Elegant one-liner supplied by JMEHNLE. Could you try with the current version of DNS.pm from http://www.net-dns.org/svn/net-dns/trunk/lib/Net/DNS.pm ? --Olaf On Dec 18, 2009, at 12:52 PM, FANY via RT wrote: Show quoted text
> Fri Dec 18 06:52:12 2009: Request 52893 was acted upon. > Transaction: Ticket created by FANY > Queue: Net-DNS > Subject: warning for MX RRs with exchange "." > Broken in: 0.65 > Severity: Unimportant > Owner: Nobody > Requestors: FANY@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=52893 > > >
>> From my understanding of the documentation to Net::DNS::RR, the trailing
> dot to FQDNs should be optional when creating such objects. > > However, when I omit it, the edge case of creating an MX-RR with "." as > (pseudo) exchange still works, but emits a warning: > > zoneedit@dns0:~ > perl -wMNet::DNS -e 'Net::DNS::RR->new_from_hash( > name=>"foo", type=>"MX", preference=>0, exchange=>"" )->print' > Use of uninitialized value $name in scalar chop at > /usr/lib/perl5/Net/DNS.pm line 473. > foo. 0 IN MX 0 . > > This can also be reproduced by running the test suite for the current > version 1.12 of Net::DNS::ZoneFile::Fast in conjunction with Net::DNS > 0.65. (Also see ticket 39362.) > > Regards, > fany
Show quoted text
__________________________________________ Ik dacht net... heel even maar.
Subject: Re: Fehlermeldung bei DNS Change [noris #10079241]
Date: Fri, 18 Dec 2009 18:25:53 +0100
To: bug-Net-DNS [...] rt.cpan.org
From: noris network AG <entwicklung [...] ticket.noris.net>
"Olaf M. Kolkman via RT" <bug-Net-DNS@rt.cpan.org> wrote: Show quoted text
> Fix rt.cpan.org #51009 > Fixed handling of empty string in Net::DNS::stripdot. > Elegant one-liner supplied by JMEHNLE.
Ah, IC. Sorry, I had apparently overlooked that one. Show quoted text
> Could you try with the current version of DNS.pm from > http://www.net-dns.org/svn/net-dns/trunk/lib/Net/DNS.pm ?
Works! Thanks a lot for your assistance and your very quick answer! Regards, fany
I'm sorry; this was meant as a reply to bug #52893, but our ticket system removed the ticket number of rt.cpan.org from the subject, and I do not seem to have the rights to merge both tickets.
"Olaf M. Kolkman via RT" <bug-Net-DNS@rt.cpan.org> wrote: Show quoted text
> Fix rt.cpan.org #51009 > Fixed handling of empty string in Net::DNS::stripdot. > Elegant one-liner supplied by JMEHNLE.
Ah, IC. Sorry, I had apparently overlooked that one. Show quoted text
> Could you try with the current version of DNS.pm from > http://www.net-dns.org/svn/net-dns/trunk/lib/Net/DNS.pm ?
Works! Thanks a lot for your assistance and your very quick answer! Regards, fany