Auto change IP on ISP down

Bibi40k

Verified User
Joined
Sep 5, 2013
Messages
18
Hi,
Please help me with some advice and a little script(s)

This is what i have:
- 2 servers replicated
- 2 ISP
- 2 DA licences

This is what is happening:
- case 1: 1 server fails/down, everything moves automatically on the other server in approx 8 minutes is up again
- case 2: main ISP is down
- i manually change the ip with
Code:
./ipswap.sh 1.2.3.4 4.3.2.1
- i manually change the DNS and... wait :)

This is what i want:
- lower the TTL on all domains ( is there any problem if i keep it low all the time ? )
- run a script that checks all the time if the external IP auto switches so it triggers the
Code:
./ipswap.sh 1.2.3.4 4.3.2.1
and also updates DNS on all hosted domains


Sounds doable, right ? :)
Please help me to sleep well even on vacations :cool:
 
Back
Top