Command Usage
Use the no ip host command to clear static entries, or the
clear dynamic entries.
Example
This example maps an IPv4 address to a host name.
Console(config)#ip host rd5 192.168.1.55
Console(config)#end
Console#show hosts
No.
---- ---- ------- --------------------
Console#
ip name-server
This command specifies the address of one or more domain name servers to use for
name-to-address resolution. Use the no form to remove a name server from this
list.
Syntax
[no] ip name-server server-address1 [server-address2 ...
Default Setting
None
Command Mode
Global Configuration
Command Usage
The listed name servers are queried in the specified sequence until a response is
received, or the end of the list is reached with no response.
Example
This example adds two domain-name servers to the list and then displays the list.
Console(config)#ip name-server 192.168.1.55 10.1.0.55
Console(config)#end
Console#show dns
Domain Lookup Status:
Default Domain Name:
Domain Name List:
Flag Type
IP Address
0
2 Address 192.168.1.55
server-address6]
server-address1 - IPv4 or IPv6 address of domain-name server.
server-address2 ... server-address6 - IPv4 or IPv6 address of additional
domain-name servers.
DNS disabled
sample.com
sample.com.jp
– 831 –
Chapter 28
| Domain Name Service Commands
clear host
TTL
Domain
----- ------------------------------
rd5
command to