On 1/13/06, <b class="gmail_sendername">Yves Glodt</b> &lt;<a href="mailto:y.glodt@sitasoftware.lu">y.glodt@sitasoftware.lu</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I have read about twisted.names and I guess it can help me in what I<br>have to achieve..<br><br>I have a database which contains a list of ip-addresses and<br>corresponding hostnames.<br><br>Now, how could I do to, 
e.g., write a daemon which would, on dns<br>queries, query the database to resolve the name?</blockquote><div><br>
You could subclass twisted.names.client.Resolver to lookup the names from the db or from some structure generated from the db.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">best regards,<br>Yves<br><br><br>_______________________________________________<br>
Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
</a><br></blockquote></div><br>