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.

If the hostname resolution takes time even after adding proper name-servers, check the list of name-servers added. Non-responsive name-servers take a long time to resolve the hostnames and result in utilities timeout and "Failed to resolve hostname" error. Ensure that the non-reachable/non-DNS name-servers are removed from the configured list.

Command Syntax

Copy
ip name-server (vrf (NAME|management)|) (X:X::X:X | A.B.C.D)
no ip name-server (vrf (NAME|management)|) (X:X::X:X | A.B.C.D)

Parameters

A.B.C.D

IPv4 address of the host

X:X::X:X

IPv6 address of the host

vrf management

Defines the management VRF instance.

vrf NAME

Specify the user-defined VRF instance name.

Default

None

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3. Added parameter NAME in OcNOS version 6.5.3.

Examples

Copy
#configure terminal
(config)#ip name-server 123.70.0.23