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. | |
Specify a DNS server | System view | dns server ip-address | Required Not specified by default. |
Interface view | interface interface-type interface-number | ||
dns server ip-address | |||
quit | |||
Configure a DNS suffix | dns domain domain-name | Optional Not configured by default. Only the provided domain name is resolved. |
NOTE: In system view, you can configure up to six DNS servers, including those with IPv6 addresses. The total number of DNS servers configured in interface view must be within six. 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. | ||