On 23 Feb 2010, at 19:32, Timothy Ball wrote:

> well i was being psuedo-lazy and i thought the "right" way would be to
> make a library do the formatting. also it seems to be a missing
> feature in dnspython or at least not very well documented. i know it
> shouldn't create the named.confs but at least a zone file so users
> don't have to deal w/ intermediate data formats or stange db storage.
> but if the author of dnspython says this ain't the right tool for the
> job then it just ain't. sure is a shame though.

dnspython can both read and write masterfiles.

dnspython's limitation in this area is that incrementally building up a zone 
object by hand is currently tedious.  We could make it better, I'm sure.  In 
fact, I think I will.  And I see that other people (e.g. easyzone) have 
provided tools that do that too.

So you certainly can use dnspython to work with zone files, and with easyzone 
or other future core dnspython improvements, it would be a really good idea if 
you were doing incremental changes.

My point was just that if you're scraping a web site and generating an entire 
zone from scratch each time (as opposed to incrementally editing an existing 
zone), it might be easier to just print to the masterfile directly.

But maybe your point is really "I don't want to know any more about what goes 
into masterfiles than I have to, why doesn't dnspython deal with it for me?"  
Is that right?

/Bob
 
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users

Reply via email to