You need several things:
If you have a firewall router (zywall USG f.e. ) with two WAN interfaces in failover mode.
You need a DYNdns name to point to the active link (Zywall can do that for you)
Their domain name needs to be a CNAME to the DYNdns name
Then the Domain name will allways refer to the active link within minutes.