Skip to main content
networking

DNS Round-Robin

DNS round-robin distributes traffic by returning multiple A records for a domain, cycling their order with each query. The simplest load distribution method – no dedicated load balancer needed. Limitations: no health checking (dead servers stay in rotation), unequal distribution (DNS caching), and no session affinity.

Definition

DNS round-robin is the simplest traffic distribution technique: configure multiple A records for the same hostname, and the DNS server rotates their order. Clients typically connect to the first IP returned, so rotation distributes connections across servers. Advantages: zero infrastructure cost, works with any protocol (not just HTTP), and is trivial to configure. Limitations are significant: DNS has no health checking – if a server dies, its IP remains in responses until manually removed (or TTL expires). DNS caching means some resolvers serve stale records for hours. Connection distribution is uneven because some clients cache the first successful IP. There is no session affinity – subsequent requests may hit different servers. For these reasons, DNS round-robin is used for: simple low-traffic sites, combined with health-check-aware DNS services (Route 53 health checks, Cloudflare load balancing), or as a first layer before per-server load balancers.

Examples

  • example.com. 300 IN A 10.0.0.1\nexample.com. 300 IN A 10.0.0.2\nexample.com. 300 IN A 10.0.0.3
  • dig example.com A +short (returns IPs in rotated order each query)
  • AWS Route 53: Multivalue answer routing with health checks = smart round-robin

Related Protocols

Related Terms