Domain Name Service Commands
4-233
4
ip host
This command creates a static entry in the DNS table that maps a host name to an
IP address. Use the
no
form to remove an entry.
Syntax
[
no
]
ip host
name
address1
[
address2
…
address8
]
• name
- Name of the host. (Range: 1-64 characters)
•
address1
- Corresponding IP address.
•
address2
…
address8
- Additional corresponding IP addresses.
Default Setting
No static entries
Command Mode
Global Configuration
Command Usage
Servers or other network devices may support one or more connections via
multiple IP addresses. If more than one IP address is associated with a host
name using this command, a DNS client can try each address in succession,
until it establishes a connection with the target device.
Example
This example maps two address to a host name.
clear host
This command deletes entries from the DNS table.
Syntax
clear host
{
name | *
}
• name
- Name of the host. (Range: 1-64 characters)
show dns
Displays the configuration for DNS services
PE
4-238
show dns cache
Displays entries in the DNS cache
PE
4-238
clear dns cache
Clears all entries from the DNS cache
PE
4-239
Console(config)#ip host rd5 192.168.1.55 10.1.0.55
Console(config)#end
Console#show hosts
Hostname
rd5
Inet address
10.1.0.55 192.168.1.55
Alias
Console#
Table 4-77 DNS Commands
(Continued)
Command
Function
Mode Page
Summary of Contents for 24/48 10/100 Ports + 2GE
Page 2: ......
Page 4: ...ES3526XA ES3552XA F2 2 6 3 E122006 CS R02 149100005500H...
Page 18: ...Contents xiv...
Page 22: ...Tables xviii...
Page 26: ...Figures xxii...
Page 34: ...Introduction 1 8 1...
Page 44: ...Initial Configuration 2 10 2...
Page 242: ...Configuring the Switch 3 198 3...
Page 498: ...Software Specifications A 4 A...
Page 511: ......
Page 512: ...ES3526XA ES3552XA E122006 CS R02D 149100005500H...