<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Pdns-users] TCP Queries always go to the recursor?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>this is a bug in powerdns tcp implementation, i posted a patch for this a few days ago</FONT>
</P>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Alfred Reibenschuh</FONT>
<BR><FONT SIZE=2>INFORMATIONS-TECHNOLOGIE AUSTRIA GMBH</FONT>
<BR><FONT SIZE=2>Netzwerk-Management</FONT>
<BR><FONT SIZE=2>A-1020 Wien, Lassallestrasse 5</FONT>
<BR><FONT SIZE=2>T: ++43-1-21717-58947</FONT>
<BR><FONT SIZE=2>F: ++43-1-21717-58979</FONT>
<BR><FONT SIZE=2>E: alfred.reibenschuh@it-austria.com</FONT>
<BR><FONT SIZE=2>W: <A HREF="http://www.it-austria.com" TARGET="_blank">http://www.it-austria.com</A> <<A HREF="http://www.it-austria.com" TARGET="_blank">http://www.it-austria.com</A>> </FONT>
</P>
<P><FONT SIZE=2>Diese Nachricht und allfällige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verständigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung besteht keine Haftung.</FONT></P>
<P><FONT SIZE=2>This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.</FONT></P>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Augie Schwer [<A HREF="mailto:augie.schwer@gmail.com">mailto:augie.schwer@gmail.com</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Thursday, December 14, 2006 1:07 AM</FONT>
<BR><FONT SIZE=2>> To: pdns-users@mailman.powerdns.com</FONT>
<BR><FONT SIZE=2>> Subject: [Pdns-users] TCP Queries always go to the recursor?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Is there a reason why TCP queries are always getting sent to the</FONT>
<BR><FONT SIZE=2>> recursor (if available) for answers instead of checking for an</FONT>
<BR><FONT SIZE=2>> authoritative answer first and then recursing if no authoritative</FONT>
<BR><FONT SIZE=2>> answer was found?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I am able to reproduce this by setting up a bogus zone in our</FONT>
<BR><FONT SIZE=2>> authoritative data (MySQL) and watching as I get the correct answer</FONT>
<BR><FONT SIZE=2>> for UDP recurse and norecurse queries as well as TCP norecurse</FONT>
<BR><FONT SIZE=2>> queries, however I see root referrals for TCP recurse queries. An even</FONT>
<BR><FONT SIZE=2>> easier way to see this is to ask for the version.bind :</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> [augie@augnix ~]$ dig +short ch txt version.bind @pdns-lab </FONT>
<BR><FONT SIZE=2>> +notcp +norecurse</FONT>
<BR><FONT SIZE=2>> "Served by POWERDNS 2.9.21-svn.20061029.908 $Id: packethandler.cc 884</FONT>
<BR><FONT SIZE=2>> 2006-08-19 12:32:32Z ahu $"</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> [augie@augnix ~]$ dig +short ch txt version.bind @pdns-lab </FONT>
<BR><FONT SIZE=2>> +notcp +recurse</FONT>
<BR><FONT SIZE=2>> "Served by POWERDNS 2.9.21-svn.20061029.908 $Id: packethandler.cc 884</FONT>
<BR><FONT SIZE=2>> 2006-08-19 12:32:32Z ahu $"</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> [augie@augnix ~]$ dig +short ch txt version.bind @pdns-lab </FONT>
<BR><FONT SIZE=2>> +tcp +norecurse</FONT>
<BR><FONT SIZE=2>> "Served by POWERDNS 2.9.21-svn.20061029.908 $Id: packethandler.cc 884</FONT>
<BR><FONT SIZE=2>> 2006-08-19 12:32:32Z ahu $"</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> [augie@augnix ~]$ dig +short ch txt version.bind @pdns-lab </FONT>
<BR><FONT SIZE=2>> +tcp +recurse</FONT>
<BR><FONT SIZE=2>> "PowerDNS Recursor 3.1.4-pre2 $Id: pdns_recursor.cc 903 2006-10-21</FONT>
<BR><FONT SIZE=2>> 16:26:49Z ahu $"</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I am going to go check the RFC, but does anyone know why this would be</FONT>
<BR><FONT SIZE=2>> the case? This is with both PowerDNS recursor and BIND as a recursor.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> Augie Schwer - Augie@Schwer.us - <A HREF="http://schwer.us" TARGET="_blank">http://schwer.us</A></FONT>
<BR><FONT SIZE=2>> Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072</FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Pdns-users mailing list</FONT>
<BR><FONT SIZE=2>> Pdns-users@mailman.powerdns.com</FONT>
<BR><FONT SIZE=2>> <A HREF="http://mailman.powerdns.com/mailman/listinfo/pdns-users" TARGET="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</A></FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>