Displaying and maintaining ipv4 dns, Ipv4 dns configuration examples, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual

Page 102

Advertising
background image

88

Step Command

Remarks

3.

Configure the IPv4 address of DNS
server.

Method 1 (In system view):

dns server ip-address

Method 2 (In VLAN interface

view):

a.

interface interface-type
interface-number

b.

dns server ip-address

c.

quit

Use either method.
No DNS server is specified

by default.

4.

Configure a domain name suffix.

dns domain domain-name

Optional.
Not configured by default.
Only the provided domain

name is resolved.

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

IMPORTANT:

By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring the
interface up by using the undo shutdown command.

Static domain name resolution configuration example

Network requirements

As shown in

Figure 39

, Device uses the static domain name resolution to access Host with IP address

10.1.1.2 through domain name host.com.

Advertising