Search Again:

Re: Change the Master server ip

From: Web Comunicaciones
Date: Monday, February 4, 2002
Time: 3:18:00 pm

I can now...:)


>I just delete all the zones at the secondary server, and when i run
>the script i get: Could not connect.
>
>any tip?
>
>>At 2:55 PM -0600 2/4/02, Web Comunicaciones wrote:
>>>>Well...
>>>>
>>>>The one-zone-at-a-time method is to use the zone options dialog,
>>>>for each zone. But if you have a lot of zones, that's a pain.
>>>
>>>I think so... i have more than 1,000
>>>
>>>>If you're using QuickDNS Manager for Mac OS 8/9/X, you can use
>>>>AppleScript. Unfortunately, there's no way with AppleScript to
>>>>change the zone options, so you're left with deleting and
>>>>recreating all of the zones on the slave server. (Disconnect from
>>>>the master server before deleting all zones! Make a backup!)
>>>
>>>
>>>
>>>Yes i'm in OS 9
>>>
>>>Ok, and i only connect to the slave server? And delete one by one?
>>>or there's another way to delete all?
>>
>>AppleScript. Copy the script below and paste it into Script Editor,
>>then run it. The script will ask you which server to work on, and
>>then it will disconnect any other servers. It will then delete every
>>zone from the server.
>>____________________________________________________________________
>>
>>tell application "QuickDNS Manager"
>> if (count of servers) =3D 0 then
>> beep
>> display dialog =AC
>> "You must be connected to the server." with icon stop =AC
>> buttons {"OK"} =AC
>> default button "OK"
>> return
>> else
>> set listOfServerNames to (the name of every server)
>> end if
>>end tell
>>
>>choose from list listOfServerNames with prompt =AC
>> "Delete all zones from which server?"
>>if ((the result is false) or (the result =3D {})) then
>> return
>>else
>> set serverName to the first item of the result
>>end if
>>
>>tell application "QuickDNS Manager"
>> -- prep:
>> activate
>> repeat with theZone in (every zone)
>> try
>> close document of theZone
>> end try
>> end repeat
>> set theServers to (the name of every server)
>> repeat with theServer in theServers
>> if (theServer as text) =82 serverName then
>> disconnect from server (theServer as text)
>> end if
>> end repeat
>>
>> -- delete all zones:
>> set theZones to (every zone)
>> if (count of theZones) > 0 then
>> repeat with theZone in theZones
>> delete zone ((name of theZone) as text) from servers {server
>>serverName}
>> end repeat
>> end if
>>end tell
>>____________________________________________________________________
>>
>>>and the next step?
>>
>>There's an AppleScript we included with QuickDNS Manager called Add
>>Slave Server. Reconnect to your master server, then open this script
>>and run it.
>>____________________________________________________________________
>>Chris Buxton Men & Mice
>>support@menandmice.com Making DNS Easy
>
>
>--
>________________________________
> Alejandro Lopez Rumayor. Webmaster
> Web Comunicaciones, Mexico
> e-mail: alopez@webcom.com.mx
> http://www.webcom.com.mx
> Tres Cruces No. 2-D, Col. Coyoacan
> C.P. 04000, Mexico, DF, Mexico.
> Tels: +52 56593519, 55543171, 56593870, 56591349.
> Pager Emergencia: 50941803
> ICQ Number: 25802005
>________________________________


--
________________________________
Alejandro Lopez Rumayor. Webmaster
Web Comunicaciones, Mexico
e-mail: alopez@webcom.com.mx
http://www.webcom.com.mx
Tres Cruces No. 2-D, Col. Coyoacan
C.P. 04000, Mexico, DF, Mexico.
Tels: +52 56593519, 55543171, 56593870, 56591349.
Pager Emergencia: 50941803
ICQ Number: 25802005
________________________________



Messages In This Thread:



Return to Digital Point Solutions' Home Page