[Pdns-users] Weird CNAME root-referral problem

bert hubert bert.hubert at netherlabs.nl
Tue Feb 10 08:03:52 UTC 2009


On Tue, Feb 10, 2009 at 02:45:03AM -0500, Ask Bj?rn Hansen wrote:
> I can't get powerdns (2.9.22) to not send root(!) referrals with CNAME  
> replies.  Any ideas?

Could you try the attached patch?

It appears that you have found a bug!

Thanks.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services
-------------- next part --------------
Index: packethandler.cc
===================================================================
--- packethandler.cc	(revision 1328)
+++ packethandler.cc	(working copy)
@@ -812,7 +812,10 @@
 	}
       }
       else if(!p->d.rd) {
-	addRootReferral(r);
+	if(::arg().mustDo("send-root-referral")) { // addresses ticket 223
+	  DLOG(L<<Logger::Warning<<"Adding root-referral"<<endl);
+	  addRootReferral(r);
+	}
 	goto sendit;
       }
 				       


More information about the Pdns-users mailing list