|
|
 |  |
Re: ScriptingFrom: Men & Mice Support Date: Saturday, May 4, 2002
Time: 12:51:21 pmYou have to address the zone document. Here's a script that I've
verified works:
property domains : {"test1.com.", "test2.com."}
repeat with domain in domains
tell application "QuickDNS Manager 3.5.1 (Carbon)"
activate
set theDoc to (open zone (domain as string))
tell theDoc
make new record at beginning with data "@ MX 10 mail.server.com."
try
close saving yes
end try
end tell
end tell
end repeat
The reason for wrapping the 'try' statement (an error handler) around
the 'close' statement is that the save operation will fail if
Manager's syntax checker finds any problems in the zone.
____________________________________________________________________
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
At 1:31 AM -0700 5/4/02, Aaron Lynch wrote:
>On 5/3/02 7:51 PM, Men & Mice Support mashed the following keys :
>
>> At 5:22 PM -0700 5/3/02, Aaron Lynch wrote:
>>> OK this is what I have that works:
>>>
> >> property domains : {"test1.com.", "test2.com."}
>>>
> >> repeat with domain in domains
>>> tell application "QuickDNS Manager for OS X"
>>> activate
>>> open zone (domain as string)
>>> end tell
>>> end repeat
> >>
>>> Then
>>> In that tell, I need it to create two mx records so I tried variations =
on:
>>>
>>>
>>> make new record at beginning with data domain & "" & "MX" & "10"
>>>& (domain &
>>> "mail.server.com")
>>>
>>> But I invariably get "QDNS got an error: can't make a new record"
>>
>> Try this:
>>
>> make new record at beginning with data "@ MX 10 mail.server.com."
>
>Gets me "can't make a record"
>
>>
>> Alternatively:
>>
>> make new MX record at beginning with properties =AC
>> {name: domain, preference: 10, mailhost name: "mail.server.com."}
>
>Gets me Can't make an MX Record
>
>Just for fun I tried in OS9 and OSX...
|
Messages In This Thread:- Scripting by Aaron Lynch on May 2, 2002 at 11:54:59 pm
- Re: Scripting by Men & Mice Support on May 4, 2002 at 12:51:21 pm
|

Return to Digital Point Solutions' Home Page |