# 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 {
update reply {
# delete all the DNS attributes
VasExperts-DHCP-DNS !* ANY
VasExperts-DHCP-DNS = "8.8.8.8"
VasExperts-DHCP-DNS += "8.8.8.9"
}
}