[Pdns-users] axfr problems on Solaris

bert hubert ahu at ds9a.nl
Tue Mar 4 23:23:15 UTC 2003


On Tue, Feb 11, 2003 at 11:49:59AM -0500, Fernando Durango wrote:
> Recently built PowerDNS 2.9.5 under Solaris 9 using the gmysql backend.
> Works perfectly with NATIVE zones, but I am having issues getting SLAVE
> support working.

Can people try this diff? It already works for Willem de Groot and should
fix the Solaris problems!

Index: resolver.cc
===================================================================
RCS file: /var/cvsroot/pdns/pdns/resolver.cc,v
retrieving revision 1.7
diff -u -b -B -r1.7 resolver.cc
--- resolver.cc	25 Feb 2003 12:36:49 -0000	1.7
+++ resolver.cc	4 Mar 2003 23:22:13 -0000
@@ -303,7 +303,7 @@
   p.setQuestion(Opcode::Query,domain,QType::AXFR);
   p.wrapup();
 
-  int replen=htons(p.len);
+  u_int16_t replen=htons(p.len);
   Utility::iovec iov[2];
   iov[0].iov_base=(char*)&replen;
   iov[0].iov_len=2;


> 
> I insert a zone to be slave as follows:
> insert into domains (name,master,type) values ('fakedomain.com','192.168.1.25','SLAVE');
> PowerDNS sees the zone and tries to AXFR the zone:
> pdns[26332]: [ID 702911 daemon.error] Domain fakedomain.com is stale, master serial 2003021101, our serial 0
> pdns[26332]: [ID 702911 daemon.notice] No serial for 'fakedomain.com' found - zone is missing?
> pdns[26332]: [ID 702911 daemon.error] Unable to AXFR zone 'fakedomain.com': EOF trying to read axfr chunk from remote TCP client
> 
> On the master (FreeBSD box running BIND 8.3.4), we are logging the
> following error repeatedly:
> stream_getlen([192.168.1.15].46311): request too small
> 
> >From a quick google-ing, the BIND people say this error is due to
> the received request being way to small to be a valid DNS request,
> so BIND ignores it. What could be causing PowerDNS to munge the
> AXFR request?
> 
> Thanks for your time,
> 
>     -F
> 
> 
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl                         Consulting


More information about the Pdns-users mailing list