Round - Robin Algorithm Selection.

Cricket Liu cricket at nxdomain.com
Fri Feb 21 20:22:32 UTC 2003


On Friday, February 21, 2003, at 12:53  PM, Christopher Crowley wrote:

> I would like to accomplish the following.
>
> I want to round robin DNS two servers.  I want 1 out of 20 requests
> to go to IP 10.0.0.1 .  The other 19 should be directed to server
> 10.0.0.2.
>
> I have multiple A records:
>
> roundrobin        5       IN      A       10.0.0.1
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
> roundrobin        5       IN      A       10.0.0.2
>
> in the appropriate zone file.  But, I don't seem to get a heavily
> weighted response.  Name service caching is disabled on the server
> querying the Name Server.

The name server is ignoring all of the duplicate records.

> Is there a way to accomplish this sort of weighting?

Well, if applications supported the SRV record, you could do
this with two SRV records.  But very few do.

You could give the server that you want more load shunted
to a bunch of IP address aliases and add A records pointing
to those.

cricket

The DNS and BIND Cookbook, now available!
http://www.oreilly.com/catalog/dnsbindckbk/



More information about the bind-users mailing list