Search Again:

Re: Secure File download problems...

From: Men & Mice Support
Date: Thursday, December 9, 1999
Time: 5:12:00 am

>To cut the time required, you could use an AppleScript. Give me a
>few minutes, and I'll put one together for you that will convert
>your existing reverse zone file to the new format.

The following script is obviously warped by the wrapping effect of email, though if you try and copy it out, it might untangle itself - depends on your email client. Anybody who wants the compiled script as an attachment can mail me directly.
____________________________________________________________________

-- Converts a class C reverse zone file into a series of class D reverse zone files.
-- Useful when one's provider delegates each IP address individually rather than using RFC 2317.

-- To run, have your existing reverse zone file open as the frontmost document of QuickDNS Pro Admin

-- After running, preview the resulting files and save them to disk if they are correct

on run
tell application "QuickDNS Pro Admin"
try
set startingPoint to the first document

set thePrimary to the primary of the SOA of startingPoint
set theHM to the admin of the SOA of startingPoint

set startingNS to the server name of every NS record of startingPoint as list

set thePTRnames to the name of every PTR record of startingPoint as list
set thePTRcnames to the canonical name of every PTR record of startingPoint as list
on error
return
end try

repeat with i from 1 to (count of thePTRnames)
set theName to item i of thePTRnames
set theNewFile to make new document
set theSOA to SOA of theNewFile
set the name of theSOA to theName
set the primary of theSOA to thePrimary
set the admin of theSOA to theHM
repeat with theOldNS in startingNS
set theNewNS to make new NS record at the end of theNewFile
set the name of theNewNS to theName
set the server name of theNewNS to theOldNS
end repeat
set theNewPTR to make new PTR record at the end of theNewFile
set the name of theNewPTR to theName
set the canonical name of theNewPTR to item i of thePTRcnames
end repeat
end tell
end run
____________________________________________________________________
Chris Buxton cbuxton@menandmice.com
Men & Mice http://www.menandmice.com
Makers of: QuickDNS Pro



Messages In This Thread:



Return to Digital Point Solutions' Home Page