Skip Menu |

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

Report information
The Basics
Id: 66609
Status: new
Priority: 0/
Queue: DNS-ZoneParse

People
Owner: Nobody in particular
Requestors: scott_stone [...] trendmicro.com
Cc:
AdminCc:

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



Subject: zoneparse cannot add new records
Date: Mon, 14 Mar 2011 16:06:17 -0700
To: <bug-DNS-ZoneParse [...] rt.cpan.org>
From: <scott_stone [...] trendmicro.com>
OS version: fully patched (as of Mar 14 2011) CentOS 5.5 PERL version: v5.8.8 built for x86_64-linux-thread-multi ZoneParse version: 1.10 Problem description: I'm trying to load a zone, add records to it, and write the file back out. The manpage has an example of how to do this, but it doesn't work. The reason it doesn't work is because when you get the A records with: my $a_records = $zonefile->a(); and then push data with "push @$a_records, { ... data ..}", you're pushing the data to the COPY of the A records, not the records inside the master data structure, so when you do: my $newfile = $zonefile->output(); The new record is not there. I'm working on a patch to add methods to push data back into the internal data structures, but I thought I would report this in case there's a way to accomplish this that I'm either not seeing or.. something. I thought that my use of strict references might be the problem, but removing "use strict" does not solve the problem. ==================== Scott Stone <scott_stone@trendmicro.com> Lead Developer, DCS-RD Trend Micro, Inc. http://www.trendmicro.com TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
Subject: RE: [rt.cpan.org #66609] AutoReply: zoneparse cannot add new records
Date: Mon, 14 Mar 2011 16:47:06 -0700
To: <bug-DNS-ZoneParse [...] rt.cpan.org>
From: <scott_stone [...] trendmicro.com>
Updating: The actual issue is that when adding a record the ORIGIN must match, including the trailing dot, the origin of the zone if explicitly specified. This should likely be documented, but the bug and its cause are NOT what I originally thought they were. Apologies. ==================== Scott Stone <scott_stone@trendmicro.com> Lead Developer, DCS-RD Trend Micro, Inc. http://www.trendmicro.com Show quoted text
-----Original Message----- From: Bugs in DNS-ZoneParse via RT [mailto:bug-DNS-ZoneParse@rt.cpan.org] Sent: Monday, March 14, 2011 4:06 PM To: Scott Stone (DCS-RD-US) Subject: [rt.cpan.org #66609] AutoReply: zoneparse cannot add new records Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "zoneparse cannot add new records", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #66609]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=66609 Please include the string: [rt.cpan.org #66609] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-DNS-ZoneParse@rt.cpan.org ------------------------------------------------------------------------- OS version: fully patched (as of Mar 14 2011) CentOS 5.5 PERL version: v5.8.8 built for x86_64-linux-thread-multi ZoneParse version: 1.10 Problem description: I'm trying to load a zone, add records to it, and write the file back out. The manpage has an example of how to do this, but it doesn't work. The reason it doesn't work is because when you get the A records with: my $a_records = $zonefile->a(); and then push data with "push @$a_records, { ... data ..}", you're pushing the data to the COPY of the A records, not the records inside the master data structure, so when you do: my $newfile = $zonefile->output(); The new record is not there. I'm working on a patch to add methods to push data back into the internal data structures, but I thought I would report this in case there's a way to accomplish this that I'm either not seeing or.. something. I thought that my use of strict references might be the problem, but removing "use strict" does not solve the problem. ==================== Scott Stone <scott_stone@trendmicro.com> Lead Developer, DCS-RD Trend Micro, Inc. http://www.trendmicro.com TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.