<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>Re: [Pdns-dev] UDP2TCP conversion</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Thu, 8 Nov 2012 08:17:38 +0100</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>Peter van Dijk <a class="moz-txt-link-rfc2396E" href="mailto:peter.van.dijk@netherlabs.nl"><peter.van.dijk@netherlabs.nl></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td>Barbaros Kazan <a class="moz-txt-link-rfc2396E" href="mailto:barbaros.kazan@labristeknoloji.com"><barbaros.kazan@labristeknoloji.com></a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Hello Barbaros,

please post your reply to the mailing list.

On Nov 8, 2012, at 8:16 , Barbaros Kazan wrote:

> On 11/07/2012 11:24 PM, Peter van Dijk wrote:

> Hi Peter.
> With UDP, there can be a lot of spoofed ips. So if lots of queries come with spoofed ips, so the performance will drop.
> We thought if go on with tcp, we will drop the first packet that came with udp and go on the conversion with tcp by always setting the tcp with, so we can handle spoofing.
>> Hello Barbaros,
>> 
>> On Nov 7, 2012, at 14:36 , Barbaros Kazan wrote:
>> 
>>> Hi,I want to use powerdns on my system and I need to do UDP to TCP conversion.
>>> So when a dns query comes from a client with UDP, I want to to set the TC bit in my response even if the response is little than 512 and drop this packet.So I always want to send my response with TC bit set and the conversion goes on TCP.
>>> So what can I do?
>>> What are the main classes and functions that have this job so I can change them to always set TC bit with response?
>> We're happy to point you to the right pieces of code, but first I have to ask: why?
>> 
>> Kind regards,


Kind regards,
-- 
Peter van Dijk
Netherlabs Computer Consulting BV - <a class="moz-txt-link-freetext" href="http://www.netherlabs.nl/">http://www.netherlabs.nl/</a>

</pre>
  </body>
</html>