beautypg.com

Configuration procedure, Displaying and maintaining ipv4 dns, Ipv4 dns configuration examples – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 87: Network requirements

background image

76

Configuration procedure

Follow these steps to configure DNS spoofing:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable DNS spoofing and
specify the translated IP address dns spoofing ip-address

Required
Disabled by default.

Displaying and maintaining IPv4 DNS

To do…

Use the 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

IPv4 DNS configuration examples

Static domain name resolution configuration example

Network requirements

As shown in

Figure 30

, the device wants to access the host by using an easy-to-remember domain name

rather than an IP address.
Configure static domain name resolution on the device so that the device can use the domain name

host.com to access the host whose IP address is 10.1.1.2.

Figure 30 Network diagram for static domain name resolution

Configuration procedure

# Configure a mapping between host name host.com and IP address 10.1.1.2.

system-view