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.

Configuration restrictions and guidelines

Configuration procedure

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.

  • (Approach 1) In system view:
    dns server
    ip-address

  • (Approach 2) In interface view:

    1. interface interface-type interface-number

    2. dns server ip-address

    3. quit

Use at least one approach.

Not specified by default.

4. Configure a DNS suffix.

dns domain domain-name

Optional.

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