Search Again:

Re: Change ttl

From: Men & Mice Support
Date: Wednesday, May 1, 2002
Time: 3:22:48 pm

At 11:07 AM -0700 5/1/02, Aaron Lynch wrote:
>Is there an applescript to change the ttl of all records for QDNS 3.x?

Here you go - I used one of the included example scripts as a
starting point, so it only took a moment. Change the first line to
set whatever value you want - the empty string (what's there now)
clears the TTL field for every record. thus resetting them all to the
default TTL of each zone.
____________________________________________________________________

set newTTL to ""
tell application "QuickDNS Manager 3.5.1 (Carbon)"
set allZones to name of every zone whose type is master and enabled is true
repeat with theZone in allZones
set theDoc to open zone (theZone as string)
tell theDoc
repeat with theRecord in every record
set the time to live of theRecord to newTTL
end repeat
try
close saving yes
end try
end tell
end repeat
end tell
____________________________________________________________________
Chris Buxton Men & Mice
support@menandmice.com Making DNS Easy

Visit the Men & Mice booth (#2525) at NetWorld+Interop in Las Vegas, Nevada,
May 7-9. http://www.key3media.com/interop/lv2002/index.php



Messages In This Thread:



Return to Digital Point Solutions' Home Page