|
|
 |  |
Re: Applescripting Load Balance recordsFrom: Men & Mice Support Date: Saturday, May 6, 2000
Time: 12:34:41 amAt 11:34 PM -0400 5/5/00, JWBaumann@aol.com wrote:
>I'm trying to Applescript the creation of load balance records with QuickDNS
>Pro admin. When I record the creation of an empty load balance record, I get
>this:
>
>tell application "QuickDNS Pro Admin"
> activate
> set infotext of Load Balance record 1 of document 1 to "Hosts: 0"
> set infotext of Load Balance record 1 of document 1 to "Hosts: 0"
> set name of Load Balance record 1 of document 1 to "untitled.com."
> set name of Load Balance record 1 of document 1 to "untitled.com."
> set infotext of Load Balance record 1 of document 1 to "Hosts: 0"
> set name of Load Balance record 1 of document 1 to "untitled.com."
>end tell
I'm told by our engineers that implementing recordability is quite a
bit of work. I'm not surprised that they didn't bother to clean up
recording for load balance records, since we figured that load
balance records wouldn't be used very extensively.
>However, when I attempt to play these commands back, I get errors such as
>"Unknown object type" if there is not already a Load Balance record 1.
Right - you're addressing a nonexistent object, since the recorded
steps don't create a load balance record.
>Worse yet, if I record the additonal steps of entering data into the load
>balance record, playing these commands back crashes QuickDNS Admin.
>
>I cannot make the following command work; it crashes QuickDNS Admin
>
>make new Load Balance record at end of document 1
Again, I'm not surprised. If you look at the definition of a Load
Balance record in the scripting dictionary, not all of the fields are
present. So it was never really intended to be scripted at all.
>If I create a template file and open it, and if that template file contains
>blank load balance records with the correct number of NS records and A
>records for what I'm doing, things work correctly, but this is pretty kludgy.
>Have I found a bug, or can someone educate me on the correct syntax for
>creating and configuring new load balance records with QuickDNS Pro using
>Applescript?
I believe you've stumbled across a small collection of bugs. Why are
you trying to script the creation of load balance records? Could you
not accomplish the same thing with a single load balance record in
your primary domain and CNAME (alias) records in your other domains?
>--------------------
[...]
> make new MX record at end of document 1
> set name of MX record 1 of document 1 to "mail"
> set mailhost name of MX record 1 of document 1 to
>"mail.linkedresources.com."
Wouldn't you want your MX record's name to be set to ""? The result
of your code is:
mail.domain. MX 10 mail.linkedresources.com.
when what you probably want is:
domain. MX 10 mail.linkedresources.com.
____________________________________________________________________
Chris Buxton cbuxton@menandmice.com
Men & Mice http://www.menandmice.com
Makers of: QuickDNS Pro
|

Return to Digital Point Solutions' Home Page |