[Pdns-users] PDNS && Solaris && Recursor setting not working
Remco Post
remco at pipsworld.nl
Tue Feb 24 20:32:46 UTC 2004
On Feb 24, 2004, at 19:58, bert hubert wrote:
> On Mon, Feb 23, 2004 at 10:24:42AM +0100, Roderick Groesbeek wrote:
>
>> Feb 20 18:25:15 Not authoritative for 'www.doei.nl', sending servfail
>> to 80.69.66.173 (recursion was desired)
>
> I hear there are patches for this problem, trying to gather them now.
> It has
> to do with endianness.
>
> --
> http://www.PowerDNS.com Open source, database driven DNS Software
> http://lartc.org Linux Advanced Routing & Traffic Control
> HOWTO
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>
I wrote the following lines, not very well tested, but it does help a
little, the patch is against 2.9.15:
*** pdns/dnsproxy.cc.old Fri Feb 6 14:00:51 2004
--- pdns/dnsproxy.cc Mon Feb 9 22:29:18 2004
***************
*** 172,177 ****
--- 172,182 ----
memcpy(&d,buffer,sizeof(d));
{
Lock l(&d_lock);
+ #ifdef WORDS_BIGENDIAN
+ // d.id is network-endian at this point and must be made into a
'native'-endian u_int16_t
+ // on little-endian systems, network-endian is native so we
don't need to do anything
+ d.id = ( 256 * (u_int16_t)buffer[1] ) + (u_int16_t)buffer[0];
+ #endif
map_t::iterator i=d_conntrack.find(d.id^d_xor);
if(i==d_conntrack.end()) {
L<<Logger::Error<<"Discarding untracked packet from recursor
backend with id "<<(d.id^d_xor)<<
--
Met vriendelijke groeten,
Remco Post
SARA - Reken- en Netwerkdiensten http://www.sara.nl
High Performance Computing Tel. +31 20 592 8008 Fax. +31 20 668 3167
"I really didn't foresee the Internet. But then, neither did the
computer industry. Not that that tells us very much of course - the
computer industry didn't even foresee that the century was going
to end." -- Douglas Adams
More information about the Pdns-users
mailing list