Search Again:

scripting addition of NS record to domains

From: Joseph D''Andrea
Date: Monday, February 26, 2001
Time: 5:00:39 pm

I need to add an NS record... the same NS record to each one of about=20
100 domains. I think this should be easy, but I'm unsure of the=20
syntax of the applescript command. I have Johan Solve's handy=20
applescript below... I just need to swap in an "adddns" subroutine=20
inplace of his "changesoa" one.

Any takers?

Thanks,
___Joe___

At 11:47 PM +0200 5/1/00, Johan Solve wrote:
>Use the applescript below if you like.
>
>tell application "Finder"
> set myfolder to (folder of =AC
> application file of application process =AC
> "QuickDNS Pro Admin" as string) & "QuickDNS Data:Primary Data:"
> set filelist to every file of folder myfolder
>end tell
>repeat with i from 1 to (count items of filelist)
> tell application "Finder"
> open item i of filelist
> set domain to name of item i of filelist
> end tell
> changesoa(domain)
>end repeat
>
>on changesoa(domain)
> tell application "QuickDNS Pro Admin"
> set minimum ttl of SOA record 1 of document domain to 3600
> end tell
>end changesoa
>
>
>
>
>
>
>>I need to set the TTL in all my domains to 1 hour and I have a few
>>questions.
>>
>>1) Can I place the value in the default part of the domain and have it
>>working in the whole domain.
>>2) What is the exact value for 1 hour.
>>3) Can I set it to 30 or even 5 minutes?
>>
>>Thanks
>>
>> Jesse Proudman - NineWire Productions
>> http://www.ninewire.com <-> jesse@ninewire.com
>> Innovative and Creative Web Design and Hosting
>
>--
> Johan S=F6lve
> FileMaker and Lasso Systems Developer
> MONTANIA SYSTEM AB [FSA Member]
>http://www.montania.se mailto:johan@montania.se
>Halmstad Branch: Brogatan 16, S-30243 Halmstad
>phone +46 35-127205 fax +46 35-2802654 mobile +46 709-515570
>Ronneby HQ: Soft Center , S-37225 Ronneby
>phone +46 457-386200 fax +46 457-26479

_________________________________________________
Joseph D'Andrea JoeDan@West21.com
WEST21.com Internet services for the 21st Century
http://www.west21.com/
_________________________________________________




Messages In This Thread:



Return to Digital Point Solutions' Home Page