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"));