[Pdns-users] axfr problems on Solaris

Fernando Durango fernando at secret.org
Thu Mar 6 00:38:21 UTC 2003


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 <ahu at ds9a.nl>
> To: Fernando Durango <fernando at secret.org>
> Cc: pdns-users at mailman.powerdns.com
> 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
> > Pdns-users at mailman.powerdns.com
> > http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>



More information about the Pdns-users mailing list