DNS Round Robin

psynegy

New member
Joined
Oct 20, 2007
Messages
1
Okay, I have been looking around on the net for how to do a round robin, and have found some material but I am not sure how I would implement this with DA.

Okay, say I have two servers: uk1.domain.com and us1.domain.com with IP's of 10.0.0.1 and 10.0.0.2 (for example).

So what I want is for a user to be bumped to either uk1 or us1 when accessing domain.com.

(Forget the locations, this is just for load balancing, nothing to do with pushing users to a better location, however that would also be useful if anyone know's how!!)

Thanks in advance!
 
First of all, presumably you realize that "load balancing" probably means "a better location", depending on what you mean by a "better location".

You really can't load balance via DNS. You can do this:

You can simply have two A records for a resource. For example:

www in A 10.0.0.1
www in A 10.0.0.2

Then Bind will give out both of these, but in random order. Now it's up to the querying resolver to pick one of the A records. Presuming all resolvers use the first one returned, this will mean that requests will alternate between the two IP#s.

But this really isn't load balancing, because the first request could be for 10,000 hits over the next hour, and the second for only one hit against one file.

To see an example, look at:
Code:
dig www.google.com
This isn't a perfect example, they use a CNAME to an alternate URL, and they use multiple A records for that. Either way will work the same way.

Jeff
 
Back
Top