Configuring dynamic domain name resolution

To use dynamic domain name resolution, a DNS server address is required so that DNS queries can be sent to a correct server for resolution.

In addition, you can configure a DNS suffix that the system automatically adds to the incomplete domain name that a user enters.

Configuration guidelines

Follow these guidelines when you configure dynamic domain name resolution:

Configuration procedure

To configure dynamic domain name resolution:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. (Optional.) Configure a DNS suffix.

dns domain domain-name [ vpn-instance vpn-instance-name ]

By default, no DNS suffix is configured and only the domain name that a user enters is resolved.

3. Specify a DNS server IPv4 address in system view.

dns server ip-address [ vpn-instance vpn-instance-name ]

Perform one or more of the tasks.

By default, no DNS server address is specified.

4. Specify a DNS server IPv4 address in interface view.

  • Enter interface view:interface interface-type interface-number

  • Specify a DNS server IPv4 address:dns server ip-address [ vpn-instance vpn-instance-name ]

  • 5. Specify a DNS server IPv6 address.

    ipv6 dns server ipv6-address [ interface-type interface-number ] [ vpn-instance vpn-instance-name ]