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

Nathaniel Haggard natester at gmail.com
Fri Jan 13 11:27:23 EST 2006


On 1/13/06, 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?


You could subclass twisted.names.client.Resolver to lookup the names from
the db or from some structure generated from the db.

best regards,
> Yves
>
>
> _______________________________________________
> 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: http://twistedmatrix.com/pipermail/twisted-python/attachments/20060113/7a12fa96/attachment.htm 


More information about the Twisted-Python mailing list