[Twisted-Python] simple dns server with twisted.names

Jean-Paul Calderone exarkun at divmod.com
Fri Jan 13 11:59:00 EST 2006


On Fri, 13 Jan 2006 13:49:17 +0100, Yves Glodt <y.glodt at sitasoftware.lu> wrote:
>Hi,
>
>I have read about twisted.names and I guess it can help me in what I have to 
>achieve..
>
>I have a database which contains a list of ip-addresses and corresponding 
>hostnames.
>
>Now, how could I do to, e.g., write a daemon which would, on dns queries, 
>query the database to resolve the name?
>

Twisted Names isn't exactly done, as far as pleasant pluggable backend support goes.  Take a look at twisted/names/authority.py and twisted/names/common.py.  The hook you are probably interested in is the _lookup method

Jean-Paul




More information about the Twisted-Python mailing list