Search Again:

Re: How2 quickly set-up secondary server for 50+ domai

From: Men & Mice Support
Date: Wednesday, March 1, 2000
Time: 12:00:00 am

At 3:51 PM -0600 2/29/2000, Mia's Virtual Post Office wrote:
>Joseph D'Andrea said:
>
>>There has to be a better way then to type in the domain names in the
>>secondary domains window, right?
>>
>Not sure on this.. we manually entered about 250 last week, and do about
>10 a week on avearge.

I posted an AppleScript to do this some time ago. It can be easily modified to suit your needs. Here it is again, slightly updated and fixed:
____________________________________________________________________

property primaryServer : "192.168.0.1"

tell application "QuickDNS Pro Admin"
set theDomainList to (name of every document) as list
repeat with theDomain in theDomainList
if (theDomain as text) is not "Secondary Domains" then
set theName to name of SOA of document ¬
(theDomain as text)
make new SD record at end of document ¬
"Secondary Domains" with properties ¬
{name:theName, filename:theName, ¬
first IP number:primaryServer}
end if
end repeat
end tell
____________________________________________________________________

I've done the best I could to fit it into the email message without breaking it.

To use this, paste this script into script editor. Open the domain files whose names are to be added to the Secondary Domains file (from the primary server), as well as the Secondary Domains file itself (from the secondary server). Of course, since they generally don't reside on the same machine, you may need to use AppleShare to accomplish this.

Then just run the script. The new records should be highlighted at the end of the Secondary Domains file. Save the file and close everything.
____________________________________________________________________
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