Step
1.
Enter system view.
2.
Enable DNS spoofing and
specify the translated IP
address.
Setting the DSCP value for DNS packets
Step
1.
Enter system view.
2.
Set the DSCP value for DNS packets.
Specifying the source interface for DNS packets
By default, the device uses the primary IP address of the output interface of the matching route as
the source IP address of a DNS request. Therefore, the source IP address of the DNS packets may
vary with DNS servers. In some scenarios, the DNS server only responds to DNS requests sourced
from a specific IP address. In such cases, specify the source interface for the DNS packets so that
the device can always uses the primary IP address of the specified source interface as the source IP
address of DNS packets.
To specify the source interface for DNS packets:
Step
1.
Enter system view.
2.
Specify the source
interface for DNS packets.
Displaying and maintaining IPv4 DNS
Task
Display the static IPv4 domain
name resolution table.
Display IPv4 DNS server
information.
Display DNS suffixes.
Command
system-view
dns spoofing ip-address
Command
system-view
dns dscp dscp-value
Command
system-view
dns source-interface interface-type
interface-number
Command
display ip host [ | { begin | exclude
| include } regular-expression ]
display dns server [ dynamic ] [ |
{ begin | exclude | include }
regular-expression ]
display dns domain [ dynamic ] [ |
{ begin | exclude | include }
89
Remarks
N/A
Disabled by default.
Remarks
N/A
Optional.
By default, the DSCP value is 0.
Remarks
N/A
By default, no source interface
for DNS packets is specified. The
device looks up its routing table
for an output interface for a DNS
request destined for a DNS
server and uses the primary IP
address of the interface as the
source IP address of the packet.
Remarks
Available in any view.
Available in any view.
Available in any view.
Need help?
Do you have a question about the 5820X Series and is the answer not in the manual?
Questions and answers