: Can I set DNS records to use whichever of my two servers is online and prefer the faster one? I currently have 2 servers with identical files for a number of websites in 2 different locations.
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.
More posts by @Gretchen104
1 Comments
Sorted by latest first Latest Oldest Best
Without recommending a specific software or product which is off topic for this site what you are after is a health checking DNS service which regularly checks if the server is online and only returns the DNS record if it is online. Most of them can be configured in a fail over situation where the automatic health check will fall back to the alternate slower machine when the faster machine is offline.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.