Chapter 25
| Domain Name Service Commands
– 726 –
Default Setting
None
Command Mode
Global Configuration
Example
Console(config)#ip domain-name sample.com
Console(config)#end
Console#show dns
Domain Lookup Status:
DNS Disabled
Default Domain Name:
sample.com
Domain Name List:
Name Server List:
Console#
Related Commands
ip domain-list (724)
ip name-server (727)
ip domain-lookup (725)
ip host This command creates a static entry in the DNS table that maps a host name to an
IPv4 address. Use the no form to remove an entry.
Syntax
[no] ip host name address
name - Name of an IPv4 host. (Range: 1-127 characters)
address - Corresponding IPv4 address.
Default Setting
No static entries
Command Mode
Global Configuration
Command Usage
Use the no ip host command to clear static entries, or the clear host command to
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