LAN to LAN Failover

Status
Not open for further replies.

rose12

Free User
Joined
Jun 16, 2020
Messages
1
Reaction score
0
Currently I'm doing a testing on fail over.

I have created LAN-LAN fail over on VMWARE.

The configuration as below.

10.0.0.10 - Window Server (Active)
10.0.0.11 - Window 10 (Passive)
10.0.0.12 - Win 7 (Softphone)
10.0.0.13 - Win 7 (Softphone)

FQDN - 3cx.server.local point to A 10.0.0.10

All softphone was provision using FQDN - 3cx.server.local

When the 3cx service at 10.0.0.1 failed, the passive server will take over.

May I know how I can run the bat script automatically when the active server was fail?
Can someone check the script below. Does it correct?

REM *** Dyn Variables ***
set hostA=10.0.0.10
set hostB=10.0.0.11
set zone=server.local
set fqdn=3cx
set dnsserver=10.0.0.10

REM *** Change To Host B ***
REM Start new DNS Change in Zone server.local
dnscmd %dnsserver% /RecordDelete %zone% %fqdn% 60 A %hostA% /f
dnscmd %dnsserver% /RecordAdd %zone% %fqdn% 60 A %hostB%
dnscmd %dnsserver% /clearcache

ipconfig /flushdns


SET hostA=
set hostB=
set zone=
set fqdn=
set dnsserver=
 
Status
Not open for further replies.

Forum statistics

Threads
111,953
Messages
589,911
Members
164,846
Latest member
Richard77