- Joined
- Nov 24, 2017
- Messages
- 9
- Reaction score
- 0
So i installed a Failover and as directed by 3CX partner support I created the A record in my DNS to point to the active server. They all so told me to setup a .BAT file to automatically initiate when the passive server goes active. Now I have that .BAT however it doesnt seem like its working. When the Passive Server goes active all the extensions will not provision to the FQDN, and yes I do have all the extension interfaces set the to FQDN to provision. I have followed 3CX's advice to the T and yet it still will not work. Im thinking it the .BAT file not pointing the DNS to the Failover once its active. This is the .BAT
REM *** Dyn Variables ***
set hostA=192.168.1.2
set hostB=192.168.5.200
set zone=*******
set fqdn=********
set dnsserver=192.168.1.2
REM *** Change To Host B ***
REM Start new DNS Change in Zone ********
dnscmd %dnsserver% /RecordDelete %zone% %fqdn% 60 A %hostA% /f
dnscmd %dnsserver% /RecordAdd %zone% %fqdn% 60 A %hostB%
dnscmd %dnsserver% /clearcache
ipconfig /flushdns
SET hostA=192.168.1.2
set hostB=192.168.5.200
set zone=*********
set fqdn=*********
set dnsserver=192.168.1.2
Im not 100% familiar with script so any help would be GREATLY appreciated. I've been working on this for too long now.
REM *** Dyn Variables ***
set hostA=192.168.1.2
set hostB=192.168.5.200
set zone=*******
set fqdn=********
set dnsserver=192.168.1.2
REM *** Change To Host B ***
REM Start new DNS Change in Zone ********
dnscmd %dnsserver% /RecordDelete %zone% %fqdn% 60 A %hostA% /f
dnscmd %dnsserver% /RecordAdd %zone% %fqdn% 60 A %hostB%
dnscmd %dnsserver% /clearcache
ipconfig /flushdns
SET hostA=192.168.1.2
set hostB=192.168.5.200
set zone=*********
set fqdn=*********
set dnsserver=192.168.1.2
Im not 100% familiar with script so any help would be GREATLY appreciated. I've been working on this for too long now.