HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ISPConfig Remote Framework Update DNS Records (http://www.howtoforge.com/forums/showthread.php?t=61145)

FSNTiger 26th March 2013 09:56

ISPConfig Remote Framework Update DNS Records
 
I want to create a script that's runs on a remote server 'B' and checks to see if server 'A' is running. If server be is detected to be down past a threshold (say 5 min) then change the DNS records in server 'B' to point the website to itself. It would also need to handle the reverse when site 'A' comes online again.

Both servers would be running ISPconfig 3, preferably in a mirror setup. The changes would be made only to the remote server and changed back when the servers come back online. It needs to do this for each website on server 'A', which could be 1 or many.

Is this even plausible, or is there a better way to handle this?

Server 'A' hosts real site. DNS records for real site.
Server 'B' hosts 'down for maintenance' site. DNS for real site when online, DNS for self when offline.

I am just lost as to how to handle this.

till 26th March 2013 10:02

If you cant switch the IP address between the servers, then changing of the dns record is an option. You should ensure to use a very small ttl for these dns records.


All times are GMT +2. The time now is 10:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.