This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong.
xxxxxxxxxx
====== FreeRadius tricks ======
=== DNS load balancing ===
<code>
# Let's suppose we have two DNS servers: 8.8.8.8 and 8.8.8.9.
# Our purpose is to get the DNS load balanced for the DNS servers.
# Example: within the "post-auth" section add the following stuff:
if ( "%{rand:2}" == "0" ) {
update reply {
# delete all the DNS attributes
VasExperts-DHCP-DNS !* ANY
VasExperts-DHCP-DNS = "8.8.8.9"
VasExperts-DHCP-DNS += "8.8.8.8"
}
else {
VasExperts-DHCP-DNS = "8.8.8.8"
VasExperts-DHCP-DNS += "8.8.8.9"
</code>