[Twisted-Python] Handeling unresolved DNS queries?

Jesper Taxbøl jesper at taxboel.dk
Thu Oct 22 13:00:35 MDT 2009


Hi Jean-Paul,

I guess my focus is right when it comes to redirecting clients.

Im hooking into

DNSDatagramProtocol.writeMessage(self, message, address):

And I guess thats OK?

But when it comes to bogus domains, I guess i could use:

DNSServerFactory.gotResolverError(self, failure, protocol, message,
address):

My problem is now how I construct a redirect package and channel it back to
the client.

Do you think that is a sensible approach? -and do you hava a pointer on how
to find the associated client.

kind regards

/tax

2009/10/22 <exarkun at twistedmatrix.com>

> On 02:46 pm, jesper at taxboel.dk wrote:
> >Hi Jean-Paul,
> >
> >Thanx for your nice reply. My problem seems to be that I dont get any
> >calls
> >to writemessage when the domain is a bogus one?
>
> It's not immediately obvious why this would be.  writeMessage is called
> to write responses back to your clients.  If the requests your server
> issues get answers, then writeMessage will be called with those answers.
> If it's not being called, perhaps the problem is that your server's
> requests are being answered by the servers it is asking.
>
> Jean-Paul
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20091022/98c64a21/attachment.html>


More information about the Twisted-Python mailing list