Changing internal DNS for failover when running Linux, on prem with Microsoft DNS?

EscondidoAdmin

Premier Customer
Basic Certified
Joined
Apr 9, 2024
Messages
91
Reaction score
19
3CX v20u3, Ent, on prem, Linux, 128sc

We're working on setting up failover between two 3CX instances. Most things seem to be working fine. In talking with my network admins abut how we can script changing the internal DNS on failover, we've run into a challenge:
Our DNS is on Microsoft Windows AD. I'm not seeing any forum posts about how to develop a Linux script to make the DNS change against a Windows AD DNS. Google searches turn up a number of possibilities but it seems all require installing additional software on Linux that the 3CX system is running on. Being aware of 3CX's position on installing other software on the 3CX server impacting supportability, I'm concerned that we are up against the impossible.
Has anybody got a solution for this config?
Thanks,
 
Best way is to use Powershell for Linux, or an API call to some sort of custom API endpoint to change the DNS via C#.

Normally, people who need this run 3CX on Windows or use a Linux-based DNS lol
 
Windows DNS can forward the hostname to another DNS server.

Curl to call a web page on Windows?
 
  • Like
Reactions: Evolute IT
3CX v20u3, Ent, on prem, Linux, 128sc

We're working on setting up failover between two 3CX instances. Most things seem to be working fine. In talking with my network admins abut how we can script changing the internal DNS on failover, we've run into a challenge:
Our DNS is on Microsoft Windows AD. I'm not seeing any forum posts about how to develop a Linux script to make the DNS change against a Windows AD DNS. Google searches turn up a number of possibilities but it seems all require installing additional software on Linux that the 3CX system is running on. Being aware of 3CX's position on installing other software on the 3CX server impacting supportability, I'm concerned that we are up against the impossible.
Has anybody got a solution for this config?
Thanks,
We do provide example scripts for the DNS change in google and MS.

https://www.3cx.com/docs/failover/ (Step 2.5)

https://downloads-global.3cx.com/downloads/misc/FailoverExampleScripts.zip
https://downloads-global.3cx.com/downloads/misc/LinuxFailoverExampleScripts.zip

https://www.3cx.com/docs/linux-pbx-failover/
 
  • Like
Reactions: Evolute IT
Hi Nicholas,

Thanks for the reply. The issue we're facing is our DNS is on a Windows Hybrid AD. Our 3CX runs on Linux which is not a member server in the domain. In our Googling around we've seen some solutions that use add-on Linux libraries to perform this, but were hoping there was something native on Linux so we could avoid installing 3rd party software on the 3CX. My question was looking to see if someone had already done this and/or had a way to do this with example commands.

What we're doing in the interim, we're using PowerShell on a Windows server that's a member of the domain to run the commands to manually re-point the DNS to the active server. Longer term, we plan on using one of the 3rd party libraries to automate performing this.

Thanks again,
 

Latest Posts

Forum statistics

Threads
111,963
Messages
589,998
Members
164,868
Latest member
swegner