[Pdns-dev] Trouble with the pdns <-> djbdns AXFR.
Matthijs Mohlmann
matthijs at cacholong.nl
Tue Oct 11 14:20:54 CEST 2005
Hi,
Here the summary of the mail conversation:
After applying the following patch against the current version in
debian: 2.9.18-4 AXFR works.
I applied some other related patches in svn, the one in dnspacket.cc
(d_tcp=false). Then the AXFR didn't work anymore.
He checked the source code and found out that dnspacket.cc ->
d_tcp=false at line 44 did the trick. When removing that one it worked
again.
Then I build the svn snapshot from 10 Okt, and that one has the same
problem with AXFR.
Here is the information how djbdns is configured:
Both machines run debian testing/etch.
The master (172.18.0.2) runs tinydns and axfrdns (djbdns 1.05), no
special options.
The "tcp" file contains the following lines:
172.18.0.3:allow
:deny
Here comes the log from a failed transfer:
@400000004343c09517467924 tcpserver: pid 7059 from 172.18.0.3
@400000004343c09517467d0c tcpserver: ok 7059 0:172.18.0.2:53
:172.18.0.3::59577
@400000004343c095174680f4 ac120003:e8b9:fea9 00fc <deleted domain>
@400000004343c09517623a9c axfrdns: fatal: unable to write to network:
connection
reset
@400000004343c095179360a4 tcpserver: end 7059 status 28416
The slave (172.18.0.3) runs pdns (2.9.18-4) with the gmysql-backend.
changes to pdns.conf:
allow-recursion=127.0.0.1,172.18.0.0/25,...
launch=gmysql
gmysql-host=...
gmysql-user=...
gmysql-password=...
gmysql-dbname=...
local-address=172.18.0.3
slave=yes
starting /etc/init.d/pdns monitor:
And here is the log of pdns:
Oct 06 13:20:12 This is module gmysqlbackend.so reporting
Oct 06 13:20:12 This is a standalone pdns
Oct 06 13:20:12 UDP server bound to 172.18.0.3:53
Oct 06 13:20:12 TCP server bound to 172.18.0.3:53
Oct 06 13:20:12 PowerDNS 2.9.18 (C) 2001-2005 PowerDNS.COM BV (Oct 1
2005, 18:1 4:48, gcc 4.0.2
20050917 (prerelease) (Debian 4.0.1-8)) starting up
Oct 06 13:20:12 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free
softwar e, and you are
welcome to redistribute it according to the terms of the GPL vers
ion 2.
Oct 06 13:20:12 Set effective group id to 106
Oct 06 13:20:12 Set effective user id to 103
Oct 06 13:20:12 Creating backend connection for TCP
Oct 06 13:20:12 Master/slave communicator launching
% Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 About to create 3 backend threads for UDP
Oct 06 13:20:12 1 slave domain needs checking
Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 Domain <deleted domain> is stale, master serial
1127388744, our serial 0
Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 No serial for '<deleted domain>' found - zone is missing?
Oct 06 13:20:12 No question section in packet from ::, rcode=0
Oct 06 13:20:12 Unable to AXFR zone '<deleted domain>': resolver: unable
to parse packet of 117 bytes
Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 gmysql Connection succesful
Oct 06 13:20:12 Done launching threads, ready to distribute questions
Regards,
Matthijs Mohlmann
More information about the Pdns-dev
mailing list