Re: axfr problems on Solaris

classic Classic list List threaded Threaded
3 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: axfr problems on Solaris

bert hubert
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
> [hidden email]
> 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
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: axfr problems on Solaris

Chris Andrews-4


On Wed, 5 Mar 2003, bert hubert wrote:

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

> -  int replen=htons(p.len);
> +  u_int16_t replen=htons(p.len);

This appears to work for me on Solaris/Sparc20 - I've just applied it and
got a successful AXFR from a BIND master, and lookups work fine against
the transferred zone.

Chris.
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: axfr problems on Solaris

Elwood Blues-2
In reply to this post by bert hubert
Works for me, so far. Only thing is the AXFR request comes from
the main IP on the server, rather than what is set in local-address.

Thanks Bert!

On Wed, 5 Mar 2003, bert hubert wrote:

> Date: Wed, 5 Mar 2003 00:23:15 +0100
> From: bert hubert <[hidden email]>
> To: Fernando Durango <[hidden email]>
> Cc: [hidden email]
> Subject: Re: [Pdns-users] axfr problems on Solaris
>
> 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
> > [hidden email]
> > http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>

Loading...