I currently have 2 servers with identical files for a number of websites in 2 different locations. One has fast internet access but is regularly offline whereas the other is always on and has slower internet access.
They are both on dynamic IPs so I use noip to get an address which then provides the static address for my domain names via a cname entry in the DNS table. The domains are managed by 123-reg and getting static IPs isn't an option.
Currently, I have to manually change the DNS records whenever the faster server is online to offer a faster connection. Obviously this is a time consuming job and with a TTL of 4 hours, a slow process.
Is there a way I can either set my DNS records to point to both dynamic DNS addresses and have it pick an active one (either randomly or with preference going to the faster connection) or have both servers update the same DDNS entry again, giving preference to the faster one but allowing the slower one to take over when its not available.