R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

87
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Specify the source interface
for DNS packets.
dns source-interface interface-type
interface-number
By default, no source interface for
DNS packets is specified. The
device uses the primary IP
address of the output interface of
the matching route as the source
IP address of a DNS request.
Displaying and maintaining IPv4 DNS
Task Command Remarks
Display the static IPv4 domain
name resolution table.
display ip host [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display IPv4 DNS server
information.
display dns server [ dynamic ] [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display DNS suffixes.
display dns domain [ dynamic ] [ | { begin
| exclude | include } regular-expression ]
Available in any view.
Display information about the
dynamic IPv4 domain name
cache.
display dns host ip [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Clear information about the
dynamic IPv4 domain name
cache.
reset dns host ip Available in user view.
IPv4 DNS configuration examples
Static domain name resolution configuration example
Network requirements
As shown in Figure 38, Router wants to access the host by using an easy-to-remember domain name
rather than an IP address.
Configure static domain name resolution on Router so that Router can use the domain name host.com to
access the host whose IP address is 10.1.1.2.
Figure 38 Network diagram