DNS Client Commands
359
OL-32830-01 Command Line Interface Reference Guide
15
no ip host
name
ip host
name
[
address1...address8
]
Parameters
•
hostname
—Name of the host. (Length: 1–158 characters. Maximum label
length of each domain level is 63 characters).
•
address1
—Associated host IP address (IPv4 or IPv6, if IPv6 stack is
supported).
•
address2
...
address8
—Up to seven additional associated IP addresses,
delimited by a single space (IPv4 or IPv6, if IPv6 stack is supported).
Default Configuration
No host is defined.
Command Mode
Global Configuration mode
User Guidelines
Host names are restricted to the ASCII letters A through Z (case-insensitive), the
digits 0 through 9, the underscore and the hyphen. A period (.) is used to separate
labels.
An IP application will receive the IP addresses in the following order:
1. IPv6 addresses in the order specified by the command.
2. IPv4 addresses in the order specified by the command.
Use the no format of the command with the
address1...address8
argument to
delete the specified addresses. The entry is deleted if all its addresses are
deleted.
Example
The following example defines a static host name-to-address mapping in the host
cache.
switchxxxxxx(config)#
ip host
accounting.website.com 176.10.23.1
Summary of Contents for 300 Series
Page 2: ......