770
C
57: DNS C
HAPTER
Related command:
Example
ip host
Syntax
View
Parameter
Description
Related command:
Example
reset dns dynamic-host
Syntax
View
Parameter
C
ONFIGURATION
OMMANDS
You can configure a maximum of six DNS servers.
display dns server.
n
For details about IPv6 DNS, refer to "IPv6 Basics Configuration Commands" on
page 829.
# Configure 172.16.1.1 for the DNS server.
[Sysname] dns server 172.16.1.1
ip host hostname ip-address
undo ip host hostname [ ip-address ]
System view
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: IP address of the specified host in dotted decimal notation.
Use the
ip host
address in the static resolving list.
Use the
undo ip host
No mappings are created by default.
You can configure only one mapping between IP address and host name. For
example, a mapping configured last time will overwrite the previous one if there is
any.
display ip host.
# Configure the IP address 10.110.0.1 for a host named aaa.
[Sysname] ip host aaa 10.110.0.1
reset dns dynamic-host
User view
None
command to create a mapping between host name and IP
command to remove the mapping.