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

On Fri, 13 Jan 2006 13:49:17 +0100, Yves Glodt <y.glodt at sitasoftware.lu> wrote:
Ok. I have to admit I am completely new to twisted... I am also not sure whether I explained myself good in what I want to do... Basically, I need a replacement for /etc/hosts. I have a daemon running on my box, and was thinking about adding a thread to it which could serve as a simple local dns server. Right now, my /etc/hosts gets updated by a cronjob every now and then. The cronjob fetches IP-addresses and hostnames from a firebird DB and writes them to the hosts file. What I was thinking to do with my daemon is, having in memory a list/hashtable of hosts with their IPs. If an IP changes I get a firebird event and I can updated it in my list. Now twisted.names would only have to listen to dns requests (I have e.g. wget and openvpn which want to resolve names from my hosts right now periodically), lookup the IPs of the requested names in my in-memory list of hosts/ips, and answer as a normal dns server. isn't twisted/names/server what I need for that? thanks and best regards, Yves p.s. Is there any more documentation available apart of this: http://twistedmatrix.com/projects/names/ http://twistedmatrix.com/projects/names/documentation/howto/names.html
Jean-Paul
participants (1)
-
Yves Glodt