7-6 
Default Level 
2: System level 
Parameters 
ip-address: IPv4 address of the DNS server. 
Description 
Use the dns server command to specify a DNS server. 
Use the undo dns server to remove DNS server(s). 
No DNS server is specified by default. 
Note that: 
z  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. 
z  Running the undo dns server command in system view will delete all DNS servers configured in 
system view and interface view. Running the undo dns server ip-address command in system 
view or interface view will delete the specific DNS server in system view or interface view. 
z  The DNS server configured in system view has a higher priority than the DNS server configured in 
interface view. That is, a name query request is first sent to each DNS server configured in system 
view; if no rely is obtained, the request is sent to each DNS server configured in interface view in 
turn. 
Related commands: display dns server. 
Examples 
# Specify the DNS server 172.16.1.1 in system view. 
<Sysname> system-view 
[Sysname] dns server 172.16.1.1 
ip host 
Syntax 
ip host hostname ip-address 
undo ip host hostname [ ip-address ] 
View 
System view 
Default Level 
2: System level 
Parameters 
hostname: Host name, consisting of 1 to 20 characters, including case-insensitive letters, numbers, 
hyphens (-), or dots (.). The host name must include at least one letter. 
ip-address: IPv4 address of the specified host in dotted decimal notation. 
Description 
Use the ip host command to create a host name to IPv4 address mapping. 
Use the undo ip host command to remove a mapping. 
No mappings are created by default.