Setting the DSCP value for outgoing DNS packets

The DSCP value of a packet specifies the priority level of the packet and affects the transmission priority of the packet. A bigger DSCP value represents a higher priority.

To set the DSCP value for outgoing DNS packets:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Set the DSCP value for DNS packets sent by a DNS client or a DNS proxy.

  • DSCP value for IPv4 DNS packets:dns dscp dscp-value

  • DSCP value for IPv6 DNS packets:ipv6 dns dscp dscp-value

By default, the DSCP value is 0 in DNS packets sent by a DNS client or a DNS proxy.