558
Command Reference for IE200 Series Industrial Managed PoE+ Switches
C613-50066-01 REV A
AlliedWare Plus™ Operating System - Version 5.4.5I-0.x
IP A
DDRESSING
AND
P
ROTOCOL
C
OMMANDS
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
Related
Commands
ip domain-list
ip domain-lookup
ip domain-name
show ip name-server