Discussion:
Bind9 weighted load balancing
Alperen Yılmaz
2021-04-30 19:43:52 UTC
Permalink
Hello everyone,

There is a round robin resolving mechanism in bind9 where the server
chooses different records to resolve for each request, but is there a way
to assign weights so that the server resolves with different probabilities?

All I could find about the topic was this old mail from the archive:
https://lists.isc.org/pipermail/bind-users/2007-April/066194.html
It says you can put duplicate records for increasing the weight, however it
also says that bind9 does not seem to support this.

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


Thank you,
Alperen Yılmaz
Kevin Darcy via bind-users
2021-04-30 20:00:24 UTC
Permalink
[ Classification Level: GENERAL BUSINESS ]

Duplicate RRs are suppressed, as per the standards.

RFC 2181, Section 5:

Each DNS Resource Record (RR) has a label, class, type, and data. It
is meaningless for two records to ever have label, class, type and
data all equal - servers should suppress such duplicates if
encountered


That being said, a DNS-based load-balancer can probably do what you're
looking for.

- Kevin
Post by Alperen Yılmaz
Hello everyone,
There is a round robin resolving mechanism in bind9 where the server
chooses different records to resolve for each request, but is there a way
to assign weights so that the server resolves with different probabilities?
https://lists.isc.org/pipermail/bind-users/2007-April/066194.html
It says you can put duplicate records for increasing the weight, however
it also says that bind9 does not seem to support this.
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
Thank you,
Alperen Yılmaz
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list
ISC funds the development of this software with paid support
subscriptions. Contact us at https://www.isc.org/contact/ for more
information.
bind-users mailing list
https://lists.isc.org/mailman/listinfo/bind-users
Loading...