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 automatically adds to the provided domain name for resolution.

Follow these guidelines when you configure dynamic domain name resolution:

To configure dynamic domain name resolution:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable dynamic domain name resolution.

dns resolve

Disabled by default.

3. Specify a DNS server.

dns server ipv6 ipv6-address [ interface-type interface-number ]

Not specified by default.

If the IPv6 address of a DNS server is a link-local address, you must specify the interface-type and interface-number arguments.

4. Configure a DNS suffix.

dns domain domain-name

Optional.

Not configured by default. Only the provided domain name is resolved.