F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

155
To specify the source interface for DNS packets:
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 the information of the
dynamic IPv4 domain name
cache.
display dns host ip [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Clear the information of the
dynamic IPv4 domain name
cache.
reset dns host ip Available in user view.
Static domain name resolution configuration example
Network requirements
As shown in Figure 104, LB wants to access the host by using an easy-to-remember domain name rather
than an IP address.
Configure static domain name resolution on LB so that LB can use the domain name host.com to access
the host whose IP address is 10.1.1.2.
Figure 104 Network diagram
Configuration procedure
# Configure a mapping between host name host.com and IP address 10.1.1.2.
<LB> system-view
[LB] ip host host.com 10.1.1.2