Python API for BIND Zonefiles
Lately I’ve been working with our hosting systems at work to try to squeeze out some more efficiency. Mostly this has resulted in automating a lot of mundane tasks that I should have never been doing by hand in the first place. My latest challenge is to completely automate our BIND DNS system. The bare mechanics of syncing the masters has been automated for some time but the management of the actual zonefiles is pretty much all done by hand.
Today, among a bazillion other things, I started writing a Python API for mainpulating BIND zonefiles. A quick and lazy google search didn’t turn up anything useful so I figured I’d just roll my own. I can see a lot of use for something like this. Things that where never possible before like web-based management of our DNS and dynamic DNS for my cable connection at home. It would be pretty cool to have a full API for BIND stuff and I’m sure there are many more ways to tie something like that into our other back-end systems.
Well, more update will follow as events progress. I’m hoping to have the time to finish up at least a functional version of the code by tomorrow, we shall see. If you’d like to follow along you can checkout the code from my subversion repository at https://svn.softgroupinteractive.com/cruteme/pybind/trunk/. It’s not terribly useful as it stands right now but it will be shortly.
Leave a Reply