beautypg.com

Configuring dynamic domain name resolution, Displaying and maintaining ipv4 dns – H3C Technologies H3C S10500 Series Switches User Manual

Page 94

background image

83

Configuring dynamic domain name resolution

To send DNS queries to a correct server for resolution, dynamic domain name resolution needs to be

enabled and a DNS server needs to be configured.
In addition, you can configure a DNS suffix that the system will automatically add to the provided

domain name for resolution.
Follow these steps to configure dynamic domain name resolution:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable dynamic domain name
resolution

dns resolve

Required
Disabled by default.

System view

dns server ip-address

interface interface-type
interface-number

dns server ip-address

Specify a DNS
server

Interface view

quit

Required
Not specified by default.

Configure a DNS suffix

dns domain domain-name

Optional
Not configured by default. Only

the provided domain name is

resolved.

NOTE:

You can configure up to six DNS servers, including those with IPv6 addresses, in system view, and up to
six DNS servers on all interfaces of a device.

A DNS server configured in system view has a higher priority than one configured in interface view. A
DNS server configured earlier has a higher priority than one configured later in the same view. A DNS
server manually configured has a higher priority than one dynamically obtained through DHCP. A

name query request is first sent to the DNS server that has the highest priority. If no reply is received, it

is sent to the DNS server that has the second highest priority, and thus in turn.

You can specify up to ten DNS suffixes.

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