Script to creat PTR zone from zone file

Russell Jackson raj at csub.edu
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 csub.edu>
Network Analyst
California State University, Bakersfield
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkrevzone.py
Type: text/x-python
Size: 2408 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20101101/b60020a8/attachment.py>


More information about the bind-users mailing list