Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: net::dns::update and in-addr.arpa ??

by Anonymous Monk
on Feb 02, 2012 at 21:18 UTC ( #951534=note: print w/ replies, xml ) Need Help??


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


Comment on Re^4: net::dns::update and in-addr.arpa ??
Select or Download Code
Re^5: net::dns::update and in-addr.arpa ??
by Anonymous Monk on Feb 08, 2012 at 02:07 UTC
    Resolved. Do a 'dig -x' on a valid IP address on the network. The "AUTHORITY SECTION" shows the in-addr.arpa zone to use for the 'new Net::DNS::Update' parameter.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951534]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-09-19 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (128 votes), past polls