What are the limits of DNS-based load balancing?
IntermediateScenarioDNS & Service Discovery
Answer
Situation read → DNS rotation spreads clients roughly but does not know about load or health in real time.
What I'd do →
- Round-robin returns several A records in rotating order, but clients and resolvers cache them
- Some clients always pick the first record
- With health checks you can remove dead IPs, but only after TTL expiry
- Use a real load balancer or anycast for fine-grained balancing
- Verify with repeated
dig +short name
Why → DNS balances connection setup at best, and only as fast as caches expire.
Interview tip → Say DNS is for steering regions, not balancing requests.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner