Script to creat PTR zone from zone file

Russell Jackson raj at
Mon Nov 1 21:29:30 UTC 2010

On 11/01/2010 11:56 AM, Russell Jackson wrote:
> On 10/29/2010 04:13 PM, CT wrote:
>> Looking to write a script to create the PTR records..
>> Not much on the Web..
> DOM style manipulation using dnspython. It can fully parse a RFC style
> zone file including following $INCLUDE statements.
> I've been planning on just having it do nsupdate calls rather than
> outputing text and allowing it to read in an arbitrary number of zones
> either from stdin or via a zone transfer.
> Python script attached.

Crap. Mixed tab/space indention. Fixed.

I noticed someone brought up AAAA records in the other subthread. I 
believe pythondns handles those so it wouldn't be difficult to add 
support for them.

Russell A Jackson <raj at>
Network Analyst
California State University, Bakersfield
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-python
Size: 2675 bytes
Desc: not available
URL: <>

More information about the bind-users mailing list