OcNOS-SP : System Management Guide : System Management Command Reference : Domain Name System Commands : ip name-server
ip name-server
Use this command to add a DNS server address that is used to translate hostnames to IP addresses.
Use the no form of this command to remove a DNS server address.
Command Syntax
ip name-server (vrf management|) (X:X::X:X | A.B.C.D)
no ip name-server (vrf management|) (X:X::X:X | A.B.C.D)
Parameters
management
Virtual Routing and Forwarding name
A.B.C.D
IPv4 address of the host
X:X::X:X
IPv6 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 name-server 123.70.0.23
Last modified date: 10/19/2023