resilient links scripting

Hi,

I have two backhaul links. Ether 2 is my primary link and Ether 3 is my backup with Ether 1 being my internal network.

At present when Ether 2 fails for more than 30 secs, Ether 3 will automatically enable and will only disable when Ether 2 comes back online.
It works a treat but because I use two different providers, I have an issue with DNS.
I currently operate a manual DNS redirection when my link fails but it is not automatic.
Is there a script where I can automatically enable my DNS redirection rule when Ether2 fails and then disable the rule when Ether 2 is back.

Thanks

Paul

To your current script which enables ether3 add one more script line that will change DNS redirect rule.

Many thanks for your reply.

Would it be possible for someone to show an example of what such a script would look like.

Thanks

I had a problem like yours and i solved it using opendns dns servers.

kindly regards,

Jorge Amaral