OcNOS-SP : System Management Guide : System Management Command Reference : Domain Name System Commands : ip host
ip host
Use this command to define static a hostname-to-address mapping in DNS. You can specify one mapping in a command.
Use the no form of this command remove a hostname-to-address mapping.
Command Syntax
ip host (vrf management|) WORD (X:X::X:X | A.B.C.D)
no ip host (vrf management|) WORD (X:X::X:X | A.B.C.D)
Parameters
management
Virtual Routing and Forwarding name
WORD
Host name, such as company.com
X:X::X:X
IPv6 address of the host
A.B.C.D
IPv4 address of the host
Default
No default is specified.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ip host company.com 192.0.2.1
Last modified date: 10/19/2023