[Pdns-users] Problems setting pdns as master and slave reverse dns.

Gabriel Garrido kainlite at gmail.com
Tue Oct 19 14:52:25 UTC 2010


Hi, I'm trying to set multiple instances of pdns and each instance have 
their domains and their ptr records, the first part works really great, 
but when I try to set the rdns part for the domains I cannot delegate 
the zones from the site of the entity that have those ip address I get this:

in the delegation website:

NS0.DOMAIN.COM: DNS fail

Error on data update

on syslog:
Oct 19 11:47:22 server pdns-domain.com[29585]: Not authoritative for 
'xxx.xxx.xxx.IN-ADDR.ARPA', sending servfail to xxx.xxx.xxx.xxx

I'm working with gmysql backend, so the records that I'm inserting in 
the database are these (I use a perl script to do this automatically 
writen by me...):
INSERT INTO domains VALUES 
('','$ptrclass.in-addr.arpa',NULL,NULL,'NATIVE','$date3',NULL);

INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$provider','SOA','ns0.$provider 
hostmaster.$provider $date3','86400',0,$date3);
INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$provider','NS','ns0.$provider','86400',0,$date3);
INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$provider','NS','ns1.$provider','86400',0,$date3);

INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$ptrclass.in-addr.arpa','NS','ns0.$provider','86400',0,$date3);
INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$ptrclass.in-addr.arpa','NS','ns1.$provider','86400',0,$date3);

INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','ns0.$provider','A','$class.$ns0','86400',0,$date3);
INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','ns1.$provider','A','$class.$ns1','86400',0,$date3);

And for every ip:

INSERT INTO records VALUES 
('','$iddomainptr->{'id'}','$allip.$ptrclass.in-addr.arpa','PTR','$prefix$allip.$provider','86400',0,$date3);

example parameters parameters:
$ptrclass = 0.168.192
$date3 = some serial number
$provider = domain.com
$prefix = somestuff-
$allip = number of the current ip address
$iddomainptr = id of the domain in table domains

If you need the full script let me know, or if you see an error on what 
I'm doing here...

Thanks.

Regards.
Gabriel.

-- 
Gabriel Garrido.
Network Administrator.
Workjoy Argentina S.A.
Technology Department.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20101019/e07f2ee0/attachment.html>


More information about the Pdns-users mailing list