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
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
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?

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.