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
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.
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. |
| 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. |