What is DNS load balancing and DNS failover?
Answer
DNS load balancing distributes traffic by returning different IP addresses in response to the same DNS query. The simplest method is Round-Robin DNS — a domain has multiple A records (different IPs) and the DNS server cycles through them. The client connects to the first IP returned. This is simple but has no health checking — if a server fails, clients still receive its IP. DNS failover monitors server health and removes failed servers' IPs from DNS responses. Advanced DNS providers (Route 53, Cloudflare, NS1) support: weighted routing (send X% to server A, Y% to server B), geolocation routing (different servers for different regions), latency-based routing (route to lowest latency endpoint), and failover routing (primary/secondary with health checks). TTL affects failover speed — short TTLs allow faster updates but increase DNS query load.