name-server

Last Updated : Nov 06, 2012 |
Adds a DNS server to the list of up to six DNS servers. Use no name-server to delete the server from the list of DNS servers.
Prolog information

Syntax

name-server index {<ip-addr> | <ipv6–addr[%zone-id]}
no name-server { ip-addr | all | dynamic | static }

Parameters

Parameter
Description
Possible Values
Default Value
index
The index number of the DNS server, indicating its priority in the list
1-6
ip-addr
The IP address of the DNS server
ipv6-addr
The IPv6 address of the DNS server
%zone-id
VlanN, where N is the VLAN number
1 — 4,090
all
Keyword indicating to delete all DNS servers from the list
dynamic
Keyword indicating to delete all dynamic DNS servers from the list
static
Keyword indicating to delete all static DNS servers from the list

User level

read-write

Context

ip domain name-server-list

Examples

To add the DNS server with IP address 1.1.1.1 as the second server in list 1:
Gxxx-001(name-server-list:1)# name-server 2 1.1.1.1
To add the DNS server with IPv6 address 2001:DB8::21F:3CFF:FE14:6E25 as the second server in list 1.
Gxxx-001(name-server-list:1)# name-server 2 2001:DB8::21F:3CFF:FE14:6E25
To delete all static DNS servers from list 1:
Gxxx-001(name-server-list:1)# no name-server static