Tuesday, September 27, 2011

dnspython

So, I'm fiddeling with various stuff at work, and need to retrieve DNS zones.  The suite I'm currently working is in python so 2 minutes later it turns out that dnspython ("import dns") is the powerful choice.


10 minutes later it turns out that it is very poorly documented. The documentation is auto-generated and there seems to be no introductory material to any part of the gargantuan class hierarchy other than some very sparse examples. Printing the objects returned isn't much help, they all seem to be very clever generators and stuff or have as_text methods. This is probably my python newbieness that's shining through, but I just can't seem to find accessor methods for the DNS records (objects9 returned even.

As ever on the Internet, someone has felt the pain already, and done a good deed.  Already in 2005 even. So presenting http://agiletesting.blogspot.com/2005/08/managing-dns-zone-files-with-dnspython.html 

(Mumble.  Someone ought to start a wiki to document it, but unfortunately that won't be me)

Wednesday, September 21, 2011

A book that is also a phone!

Earlier I wrote about my experience with a tablet/pad and that I thought a Android phone might be a better fit for my needs since the tab was too heavy to use as a book for example.  And so I got a large screen Android phone.  And it is.

But it's not really a phone.  I use it mostly as a book: On the bus, on the train, in bed before I sleep.  I wish I could use it more as a mp3 player too, BUT I will have to shop for something with more battery life than a Galaxy S II otherwise mine will give out before dinner.

And I can make phone calls with it too.