Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mws [...] nominum.com
Cc:
AdminCc:

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



Subject: Problem in RR_REGEX
When trying to create a dynamic update to remove an entire node, Net:DNS is unable to properly process the rr_del() call. The enclosed file gives an example of the problem. The problem appears to be the definition of RR_REGEX in RR.pm, on line 122. The \\s+ there will prevent the regex from matching on just a name, unless it is followed by a dummy space. I believe changing this to a \\s* will fix the bug. Thanks. Mike
use Net::DNS; use strict; my $packet = Net::DNS::Update->new("example.nil"); $packet->push("update", rr_del("byebye.example.nil"));
Date: Tue, 20 Aug 2002 20:22:22 -0400 (EDT)
From: Chris Reinhardt <ctriv [...] dyndns.org>
To: Guest via RT <bug-Net-DNS [...] rt.cpan.org>
Subject: Re: [cpan #1462] Problem in RR_REGEX
On Tue, 20 Aug 2002, Guest via RT wrote: Show quoted text
> > > This message about Net-DNS was sent to you by guest via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=1462 > > > When trying to create a dynamic update to remove an entire node, Net:DNS > is unable to properly process the rr_del() call. The enclosed file > gives an example of the problem. > > The problem appears to be the definition of RR_REGEX in RR.pm, on line > 122. The \\s+ there will prevent the regex from matching on just a > name, unless it is followed by a dummy space. I believe changing this > to a \\s* will fix the bug.
This has been fixed in Net::DNS 0.28, which I just uploaded to CPAN and should be on all the mirrors over the next 24-48 hours. It is also at http://www.net-dns.org/download/ Hope this helps. -- Chris Reinhardt ctriv@dyndns.org Systems Architect Dynamic DNS Network Services http://www.dyndns.org/