Script to creat PTR zone from zone file

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


More information about the bind-users mailing list