How to set up round-robin DNS

I have two webservers, on separate machines, on separate networks. They are identical. I want them to respond, in round-robin fashion, to the same domain name — host.domain.com. How do I set this up in DNS? Turns out it’s actually very easy:

host.domain.com  IN  A  192.168.1.1
host.domain.com  IN  A  10.1.10.1

The DNS server (BIND, in my case) will serve up the “next” IP address for host.domain.com every time it’s queried.

Takes 10 seconds to configure.

Comments

Ken's picture
Ken on October 4, 2003 - 16:02 Permalink

I am about to build a DNS server using BIND, can you tell me anything that will help me before I start?
I plan to use Red Hat 9, and still need to find BIND to go with it.

Ken's picture
Ken on October 13, 2003 - 19:02 Permalink

I have loaded Red Hat 9 successfully!
I’ve also got BIND sort of running, still need to make a .conf file, wondering how to test it works right.
Just set my DNS in Windows to my server rather than 142.176.17.8,9 and see if it works?

Does my BIND server need to point to 142.176.17.8 and 9?