linux poison RSS
linux poison Email

HowTO- Round Robin DNS

In this case we will take an example of a webservers

To use round robin, each web server must have its own public IP address. A common scenario is to use network address translation and port forwarding at the firewall to assign each web server a public IP address while internally using a private address.

This example from the DNS zone definition for assigns the same name to each of the three web servers, but uses different IP addresses for each:

; Domain database for
; IN SOA (
2006032801 ; serial
10800 ; refresh
3600 ; retry
86400 ; expire
86400 ; default_ttl
; Name servers
; Web servers
; (private IPs shown, but public IPs are required)
www IN A
www IN A
www IN A

When DNS gets a request to resolve the name, it will return one IP address, then a different address for the next request and so on. Theoretically, each web server will get one third of the web traffic. Due to DNS caching and because some requests may use more resources that others, the load will not be shared equally. However, over time it will come close.

This is a very good example of Load balancing using DNS server (Round Robin)


Anonymous said...

Found this howto which I think will be useful for someone.

DevOps said...

Really good article

Post a Comment

Related Posts with Thumbnails