Name servers released since BIND 4.9 have formalized some load-sharing functionality that has existed in patches to BIND for some time. Bryan Beecher wrote patches to BIND 4.8.3 to implement what he called "shuffle address records." These were address records of a special type that the name server rotated between responses. For example, if the domain name foo.bar.baz had three "shuffled" IP addresses, 22.214.171.124, 126.96.36.199, and 188.8.131.52, an appropriately patched name server would give them out first in the order:
184.108.40.206 220.127.116.11 18.104.22.168
then in the order:
22.214.171.124 126.96.36.199 188.8.131.52
and then in the order:
184.108.40.206 220.127.116.11 18.104.22.168
before starting over again with the first order, and repeating the rotation ad infinitum .
The functionality is enormously useful if you have a number of equivalent network resources, like mirrored FTP servers, Web servers, or terminal servers, and you'd like to spread the load among them. You establish one domain name that refers to the group of resources, configure clients to access that domain name, and the name server inverse-multiplexes the accesses between the IP addresses you list.
BIND 4.9 and later versions do away with the shuffle address record as a separate record type, subject to special handling. Instead, a modern name server rotates addresses for any domain name that has more than one A record. (In fact, the name server will rotate any type of record, except PTR records, as long as a given domain name has more than one of them.) So the records:
foo.bar.baz. 60 IN A 22.214.171.124 foo.bar.baz. 60 IN A 126.96.36.199 foo.bar.baz. 60 IN A 188.8.131.52
It's a good idea to reduce the records' time-to-live, too, as we did in this example. This ensures that if the addresses are cached on an intermediate name server that doesn't support round robin, they'll time out of the cache quickly. If the intermediate name server looks up the name again, your authoritative name server can round robin the addresses again.
Note that this is really load sharing, not load balancing, since the name server gives out the addresses in a completely deterministic way, without regard to the actual load or capacity of the servers servicing the requests. In our example, the server at address 184.108.40.206 could be a 486 DX 33 running Linux, and the other two servers HP 9000 K420s, and the Linux box would still get a third of the queries. Listing a higher-capacity server's address multiple times won't help, because BIND eliminates duplicate records.