106
Setting the DSCP value for outgoing DNS packets
About 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.
Procedure
1. Enter system view.
system-view
2. Set the DSCP value for DNS packets sent by a DNS client or a DNS proxy.
IPv4:
dns dscp dscp-value
By default, the DSCP value is 0 in IPv4 DNS packets sent by a DNS client or a DNS proxy.
IPv6:
ipv6 dns dscp dscp-value
By default, the DSCP value is 0 in IPv6 DNS packets sent by a DNS client or a DNS proxy.
Display and maintenance commands for DNS
Execute display commands in any view and reset commands in user view.
Task Command
Display DNS suffixes.
display dns domain
[
dynamic
]
Display the domain name resolution
table.
display
dns
host
[
ip
|
ipv6
]
Display IPv4 DNS server
information.
display
dns
server
[
dynamic
]
Display IPv6 DNS server
information.
display
ipv6
dns
server
[
dynamic
]
Clear dynamic DNS entries.
reset
dns
host
[
ip
|
ipv6
]
IPv4 DNS configuration examples
Example: Configuring static domain name resolution
Network configuration
As shown in Figure 37, the host at 10.1.1.2 is named host.com. Configure static IPv4 DNS on the
device so that the device can use the easy-to-remember domain name rather than the IP address to
access the host.
Figure 37 Network diagram