CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: General Discussions: General Questions:
Create PTR Record using Net::DNS


New User

Feb 3, 2012, 11:12 AM

Post #1 of 2 (34584 views)
Create PTR Record using Net::DNS Can't Post

First, the relevant xkcd comic:

Next, the 10-year old thread on PerlMonks:

Basically, I'm failing in my attempts to use Net::DNS::Update to create a PTR record and I'd like to see how others have manged this.

Below is what I'm trying. $hst is the hostname that I already have an A record for. $rev is the backwards IP address thingy.

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

New User

Feb 7, 2012, 6:14 PM

Post #2 of 2 (34480 views)
Re: [c0t0d0] Create PTR Record using Net::DNS [In reply to] Can't Post

Resolved. Do a 'dig -x' on a valid IP address on the network. The "AUTHORITY SECTION" shows the zone to use for the 'new Net::DNS::Update' parameter.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives