103
Procedure
1. Enter system view.
system-view
2. Configure a host name-to-address mapping. Choose the options to configure as needed:
IPv4:
ip host host-name ip-address
IPv6:
ipv6 host host-name ipv6-address
Configuring dynamic domain name resolution
Restrictions and guidelines
• The limit on the number of DNS servers on the device is as follows:
{ In system view, you can specify a maximum of six DNS server IPv4 addresses.
{ In system view, you can specify a maximum of six DNS server IPv6 addresses.
{ In interface view, you can specify a maximum of six DNS server IPv4 addresses.
• A DNS server address is required so that DNS queries can be sent to a correct server for
resolution. If you specify both an IPv4 address and an IPv6 address, the device performs the
following operations:
{ Sends an IPv4 DNS query first to the DNS server IPv4 addresses. If the query fails, the
device turns to the DNS server IPv6 addresses.
{ Sends an IPv6 DNS query first to the DNS server IPv6 addresses. If the query fails, the
devices turns to the DNS server IPv4 addresses.
• A DNS server address specified in system view takes priority over a DNS server address
specified in interface view. A DNS server address specified earlier has a higher priority. A DNS
server address manually specified takes priority over a DNS server address dynamically
obtained, for example, through DHCP. The device first sends a DNS query to the DNS server
address of the highest priority. If the first query fails, it sends the DNS query to the DNS server
address of the second highest priority, and so on.
• You can configure a DNS suffix that the system automatically adds to the incomplete domain
name that a user enters.
{ You can configure a maximum of 16 DNS suffixes.
{ A DNS suffix manually configured takes priority over a DNS suffix dynamically obtained, for
example, through DHCP. A DNS suffix configured earlier has a higher priority. The device
first uses the suffix that has the highest priority. If the query fails, the device uses the suffix
that has the second highest priority, and so on.
Procedure
1. Enter system view.
system-view
2. (Optional.) Configure a DNS suffix.
dns domain domain-name
By default, no DNS suffix is configured and only the domain name that a user enters is resolved.
3. Specify a DNS server address.
IPv4:
dns server ip-address
IPv6: