micro authoritative dns server

Jack nospam at invalid.com
Wed Jul 26 11:21:22 EDT 2006


I was looking for something like that. I came across this:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491264
It's not ready to use but you can modify it.


<xan2 at ono.com> wrote in message 
news:1153777525.305785.168650 at i42g2000cwa.googlegroups.com...
> Hi,
>
> I'm new in python. I know that there are several classes for writing
> dns servers, but I don't understand it
>
> I just want to know if anyone could help me in writing a code for
> minimal authoritative dns server. I would like that anyone show me the
> code, minimal, for learn how expand it.
>
> The code I desireed should do the following:
>
> 1) It has an hash:
> hosts = { "myhost"   => 84.34.56.67
>                "localhost" => 127.0.0.1,
>                "blue"  => fe80::20f:b0ff:fef2:f106
>         }
> 2) If any application asks if know any hosts, say nothing if this host
> is not in the hash (hosts). If this host is in the hash, return the ip
> 3) And not do anything more
>
> So if we put this server in /etc/resolv.conf then the browsers only
> recognize the hosts we want
>
> Thanks in advance,
> Xan.
>
> PS: For personal communication, DXpublica @@@@@ telefonica.net
> 





More information about the Python-list mailing list