546 Command Reference for x230 Series Edge Switches C613-50055-01 REV A
AlliedWare Plusâ„¢ Operating System - Version 5.4.5-0.x
IP ADDRESSING AND PROTOCOL COMMANDS
IP
NAME-SERVER
ip name-server
Overview This command adds IPv4 or IPv6 DNS server addresses. The DNS client on your
device sends DNS queries to IP addresses in this list when trying to resolve a host
name. Host names cannot be resolved until you have added at least one server to
this list. A maximum of three name servers can be added to this list.
The no variant of this command removes the specified DNS name-server address.
Syntax
ip name-server <ip-addr>
no ip name-server <ip-addr>
Mode Global Configuration
Usage When your device is using its DHCP client for an interface, it can receive Option 6
messages from the DHCP server. This option appends the name server list with
more DNS servers.
For more information about DHCP and DNS, see the IP Feature Overview and
Configuration Guide.
Examples To allow a device to send DNS queries to a DNS server with the IPv4 address
10.10.10.5, use the commands:
awplus# configure terminal
awplus(config)# ip name-server 10.10.10.5
To enable your device to send DNS queries to a DNS server with the IPv6 address
2001:0db8:010d::1, use the commands:
awplus# configure terminal
awplus(config)# ip name-server 2001:0db8:010d::1