Setting a weight and priority

Perform this task to set a weight for the weighted round robin algorithm and bandwidth algorithm of a DNS server, and set the scheduling priority in the DNS server pool for the DNS server.

To set a weight and priority for a DNS server:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter DNS server view.

loadbalance dns-server dns-server-name

N/A

3. Set a weight for the DNS server.

weight weight-value

By default, the weight of a DNS server is 100.

4. Set a priority for the DNS server.

priority priority

By default, the priority of a DNS server is 4.