Script to creat PTR zone from zone file

Russell Jackson raj at
Mon Nov 1 18:56:12 UTC 2010

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.

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

More information about the bind-users mailing list