|
|
 |  |
Re: Creating New DNS Records with AppleScriptFrom: Men & Mice Support Date: Monday, September 9, 2002
Time: 10:16:41 amAfter 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
|

Return to Digital Point Solutions' Home Page |