|
|
|
|
|
by brianwawok
3994 days ago
|
|
It is up to the client. But all of the clients (browsers) out there do more or less the same thing.. they try the first DNS record.. if no response in ~30 seconds, try the second, and so on - going down the list. TTL does not matter here because I am not yanking or adding to my DNS record. I am simply saying "Here are 3 servers.. try them in order until you find one that works". In practice, a helpful feature is a) Most clients try them in order from top to bottom
b) Most DNS servers (including Digital Oceans) randomize the return order. So if you do 2 dns requests, the first will return 1.2.3.4, 1.2.3.5, 1.2.3.6, and the second will return 1.2.3.5, 1.2.3.6, 1.2.3.4 This has the double benefit of splitting traffic more or less evenly between my load balancers, and dealing with things with one or more is dead. |
|
> if no response in ~30 seconds, try the second
That is not HA. Most people will not wait 30 seconds for a page to load. If your business looses money with every minute of downtime this is certainly not adequate. It's certainly not recommended https://en.wikipedia.org/wiki/Round-robin_DNS#Drawbacks