1-3 
 
z  The IP address you assign to a host name last time will overwrite the previous one if there is any.  
z  You may create up to 50 static mappings between domain names and IP addresses. 
 
Configuring Dynamic Domain Name Resolution 
Table 1-2 Configure dynamic domain name resolution 
Operation  Command  Remarks 
Enter the system view 
system-view 
— 
Enable dynamic domain name 
resolution 
dns resolve 
Required 
Disabled by default 
Configure an IP address for the 
DNS server 
dns server ip-address 
Required 
No IP address is configured for 
the DNS server by default. 
Configure DNS suffixes  
dns domain domain-name 
Optional 
No DNS suffix is configured by 
default 
 
 
You may configure up to six DNS servers and ten DNS suffixes. 
 
Displaying and Maintaining DNS 
After the above configuration, you can execute the display  command and the nslookup type 
command in any view to display the DNS configuration information and the DNS resolution result to 
verify the configuration effect. You can execute the reset command in user view to clear the information 
stored in the dynamic domain name resolution cache. 
Table 1-3 Display and maintain DNS 
Operation  Command…  Remarks 
Display static DNS database 
display ip host 
Display the DNS server 
information 
display dns server [ dynamic ] 
Display the DNS suffixes  display dns domain [ dynamic ] 
Display the information in the 
dynamic domain name cache 
display dns dynamic-host 
Available in any 
view 
Display the DNS resolution result 
nslookup type { ptr ip-address | a 
domain-name } 
Available in any 
view