How to do DNS round robin with different weight

Gregory Hicks ghicks at cadence.com
Tue Apr 17 07:59:52 UTC 2007


> To: bind-users at isc.org
> Subject: How to do DNS round robin with different weight
> Date: Tue, 17 Apr 2007 03:01:52 -0400
> From: skybirrd at aol.com
> 
> Hello members,
> 
> I'm running BIND-9.3.2. I add these items to do the DNS round-robin:
> 
> bbs    61.143.0.1
>          61.143.0.2
> 
> 
> Then the internet accesses would go to both IPs averagely.
> 
> But if I need to drive more traffic to the first IP,I may need to set 
> different weight for both IPs.
> How can I set this weight in Bind?

Put the IP address in multiple times.  Eg, you want traffic to go to
the first Ip 3 of 4 times.  Have a four record RRset.  Put the first Ip
in this RRset three times and the second IP in once.  Eg:

host	IN A 1.2.3.4
	IN A 1.2.3.4
	IN A 1.2.3.4
	IN A 1.2.3.5

Or put a load balancer in front of the two IP addresses that divies the 
traffic up in a 3:1 ratio.  (But this is not in accordance with the BIND 
discussion charter.)

See the BIND-USERS archives for more info.

Regards,
GRegory Hicks

---------------------------------------------------------------------
Gregory Hicks                           | Principal Systems Engineer
Cadence Design Systems                  | Direct:   408.576.3609
555 River Oaks Pkwy M/S 9B1
San Jose, CA 95134

I am perfectly capable of learning from my mistakes.  I will surely
learn a great deal today.

"A democracy is a sheep and two wolves deciding on what to have for
lunch.  Freedom is a well armed sheep contesting the results of the
decision."

"The best we can hope for concerning the people at large is that they
be properly armed." --Alexander Hamilton



More information about the bind-users mailing list