Configuring Static
DNS Resolution
Configuring Dynamic
DNS Resolution
Configuration Procedure
DNS Configuration
Example
Table 656 Configure static DNS resolution
Operation
Enter system view
Add a hostname-to-address
mapping entry
n
As one hostname can mapped to only one IP address, when you add multiple
hostname-to-address mapping entries with the same hostname, only the last one
will be valid.
You can add up to 50 entries for static DNS resolution.
Table 657 Configure dynamic DNS resolution
Operation
Enter system view
Enable dynamic DNS
resolution
Configure a DNS server IP
address
Configure a DNS suffix
n
You can configure up to 6 DNS servers and 10 DNS suffixes.
Network requirements
As shown in Figure 214, Switch is used as a DNS client with dynamic DNS
resolution. It allows you to visit Host with IP address 3.1.1.1/16. The DNS server IP
address is 2.1.1.2/16. The DNS suffixes "com" and "net" are configured.
Configuring Static DNS Resolution
Command
system-view
ip host hostname ip-address
Command
system-view
dns resolve
dns server ip-address
dns domain domain-name
833
Description
-
Required
There is no entry in the static
DNS list by default.
Description
-
Required
This function is disabled by
default.
Required
No DNS server IP address is
configured by default.
Optional
No DNS suffix is configured by
default.