ip dns server-address priority
Syntax
ip dns server-address priority <PRIORITY> <IP-ADDR | IPv6-ADDR> [ oobm ]
no ip dns server-address priority <PRIORITY> <IP-ADDR | IPv6-ADDR> [ oobm ]
Description
Configures the IP address and priority of the DNS server. The command allows both IPv4 and IPv6 servers in any combination and any order of priority. The
ip dns server-address priority
supports a maximum of four manual DNS servers. The priorities are 1, 2, 3 and 4.
The
no
form of the command removes the specified IP address from the server address list configured on the switch.
Windows DHCPv6 server is not supported.
Command context
config
Parameters
priority <1-4>
Specifies the priority of the DNS address.
Priority 1 and 2 are reserved for IPv4 address by default when configured through DHCP server.
Priority 3 and 4 are reserved for IPv6 address by default when configured through DHCP server.
Configure the IPv4 or IPv6 address manually to set any priorities.
IP-ADDR | IPv6-ADDR
Specifies the address of an IPv6 or IPv4 DNS server.
oobm
Specifies that the communication with the DNS server goes through the OOBM port.
Example
Switch(config)# ip dns dhcp Configure DNS via DHCP. domain-name Configure the DNS (Domain Name System) domain name for translation of hostnames to IP addresses. server-address Configure DNS server IP address. Switch(config)# ip dns server-address priority Priority of Server Address. Switch(config)# ip dns server-address priority <1-4> Enter a number. Switch(config)# ip dns server-address priority 4 IPV6-ADDR DNS server IPv6 address. IP-ADDR DNS server IP address. Switch(config)# ip dns server-address priority 4 2001:1db8:3cd4:1115:1111:2222:1a2f:1a2b oobm Use the OOBM interface to connect to the server. Switch(config)# ip dns server-address priority 4 2001:1db8:3cd4:1115:1111:2222:1a2f:1a2b oobm
Switch(config)# show ip dns DNS Mode : Manual DNS Domain Names Configured: --------------------------- No. DNS Domain Name --- --------------- 1. dmn3 DNS Servers Configured: ---------------------- Priority DNS Server Addresses OOBM -------- --------------------------------------- ---- 1. 2001:1db8:3cd4:1115:1111:2222:1a2f:1a1b YES 3. 192.168.1.1 YES 4. 2001:1db8:3cd4:1115:1111:2222:1a2f:1a2b NO
; JL071A Configuration Editor; Created on release #KB.16.06.0000x ; Ver #13:03.f8.1c.fb.7f.bf.bb.ff.7c.59.fc.7b.ff.ff.fc.ff.ff.3f.ef:05 hostname "Aruba-3810M-24G-1-slot" module 1 type jl071x flexible-module A type JL081A ip dns domain-name "dmn3" ip dns server-address priority 1 2001:1db8:3cd4:1115:1111:2222:1a2f:1a1b oobm ip dns server-address priority 3 192.168.1.1 oobm ip dns server-address priority 4 2001:1db8:3cd4:1115:1111:2222:1a2f:1a2b