Search Again:

Re: Creating New DNS Records with AppleScript

From: quickdns-talk
Date: Monday, September 9, 2002
Time: 12:07:22 pm

Thanks for the response. Let me take the liberty of being more specific
about the problem. I have a script as you have outlined below, and I am
getting an error on the "make new A record at end with properties..." line.
To be more precise it comes back stating that "a descriptor type mismatch
has occurred". This is true if I have that line item looking like:

make new A record at end with properties {full name:"www.domain.com.",
type:"A", data:"209.152.51.23"}

...or even just...

make new A record at end with properties {data:"209.152.51.23"}

What descriptor syntax is AppleScript expecting from QuickDNS? There is
something I am not understanding about the QuickDNS AppleScript properties.
I also note that the AppleScript "record" feature does not appear to work
with QuickDNS. I am using QuickDNS Manager for OS X 3.5. I greatly
appreciate any assistance.

- Steve

------------------------------------------------------------------------
Re: Creating New DNS Records with AppleScript

From: Men & Mice Support
Date: 9/9/2002
Time: 10:16:41 AM
------------------------------------------------------------------------
After you create the zone, you must open it. The 'open' command
returns a document reference. Therefore, you might try something like
this:
tell application...
make new zone...
tell document (open zone theZone)
make new A record at end with properties...
end tell
end tell
That's just an off-the-cuff idea. I may have misremembered some
details. Look in the scripts we included with QuickDNS Manager 3.5.x
for more ideas.
____________________________________________________________________
Chris Buxton Men & Mice
support@menandmice.com Making DNS Easy
At 5:01 AM -0500 9/9/02, dns wrote:
>I have more than 5,000 domains in a database that I need to enter into our
>name server. I have tried to do this with AppleScript, but I cannot get it
>to work completely. I have referred to the examples with QuickDNS Pro. I
>can create the new zone file alright, using :
>
>tell application "QuickDNS Manager for OS X"
> activate
> make new zone with properties {name:"domain.com.", master
>server:"ns1.domain.com.", slave servers:"ns1.domain.com.", type:master,
>enabled:yes}
>end tell
>
>..but I am unable to enter any new records (A records especially). I have
>tried things like:
>
>tell application "QuickDNS Manager for OS X"
> activate
> make new zone with properties {name:"domain.com.", master
>server:"ns1.domain.com.", slave servers:"ns1.domain.com.", type:master,
>enabled:yes}
> make new A record at after (the last NS record whose name is
>"ns1.domain.com.") with properties =AC
> {name:"www.domain.com.", data:"209.152.51.23"}
>end tell
>
>..and it keeps coming back with an error saying "Can't get some object." I
>know you probably cannot give AppleScript support, but it would appear that
>the QuickDNS Pro Suite has an unusual requirememt, unless I'm being stupid
>again. Can you help at all?
>
>I own a registered copy of QuickDNS Pro version 3.5 (serial
>QDNS-aaac-abf5-aede-xs8n). Thanks.
>
>___________________________________________________________________________=
_
>Steven J. Garner NaTel Investments L.C=
=2E
>Managing Member 907 West Burlington Avenu=
e
>Email: steve@natel.net P.O. Box 107=
6
>Tel: 641.469.6220 ext 103 Fairfield, Iowa 5255=
6
>Cell: 641.233.0020 Fax: 641.472.662=
4
------------------------------------------------------------------------




Messages In This Thread:



Return to Digital Point Solutions' Home Page