SoftDNS 0.2

Paul Dickson paul at permanentmail.com
Mon Dec 5 11:20:37 MST 2005


Over the last two and half weeks I rewrote tinydns from djbdns in
Python.  I have most of the functionality.  I'm missing a bit of the
details, specifically the dns database optional parameters, but the core
functions pretty well (the first complete end-to-end tests were only done
a couple of hours ago, but I've doing module testing as I when along).

The code is here:
	http://members.cox.net/paul.dickson/softdns-0.2.tar.bz2

The optional parameters for the data entries in the tinydns.txt file are
very recent.  Their processing is still a bit of a hack (in other words,
don't expect nicely written code).

I've started using git/cogito for this project, which I learned last
Saturday.

I started this project in order to understand the C code.  So to aid in
the understanding, I rewrote the C code in Python.

The original C code had a lot of error checking, in fact just about every
line had some error checking (which is requirement for C).  In one C
routine, I was able to compress it down from 24 lines to one line
(although it does have three expressions :-).  A lot of my code expansion
over the original is due to comments and debugging artifacts as well as a
bit of still emulating C code where I don't totally grok the C code's
intent.

	-Paul



More information about the PLUG-devel mailing list