http://www.perlmonks.org?node_id=951534


in reply to Re: Re: Re: net::dns::update and in-addr.arpa ??
in thread net::dns::update and in-addr.arpa ??

10 years later and I have this exact same problem. Can't figure out how to add a PTR record using Net::DNS. I wonder if OP ever figured this out...

The syntax of my rr_add is: rr_add(X.XXX.XXX.XX.in-addr.arpa 3600 PTR hostname.mydomain.com.)

Is this correct? Thanks in advance...
# Create the update packet: my $update = Net::DNS::Update->new($OURDOMAIN); # Add the PTR record: $update->push(update => rr_add("$rev 3600 PTR $hst")); # Send the update to the zone's primary master. my $res = Net::DNS::Resolver->new; $res->nameservers("$OURNMSERV"); my $reply = $res->send($update);