Hi, thanks so far - but i think I have to explain my problem in more detail:
I use the examples from net::dns::update. Adding or deleting A records works great! But there are no examples how to write PTR records to in-addr.arpa zones.
i have tried syntax like those from "nsupdate" :
update: {add} 13.13.168.192.in-addr.arpa. 86400 IN PTR testhost.foo.com.
but with no success ! (NOTZONE RETURN CODE from DNS-Server)
here is my example without variables:
.
my $update = Net::DNS::Update->new(foo.com);
$update->push("pre", nxrrset("3.13.168.192.in-addr.arpa. PTR testhost.
+foo.com."));
$update->push("update", rr_add("$3.13.168.192.in-addr.arpa. 86400 IN P
+TR testhost.foo.com."));
my $res = Net::DNS::Resolver->new;
$res->nameservers(nameserver.foo.com);
my $reply = $res->send($update);
.
answers to the questions:
as far as i know there shold be a "dot" after the domain name (testhost.foo.com.)
Net::DNS::Update->new should refer to den DNS domain
there are no right problems...
by
wolfgang |