C613-50170-01 Rev B
Command Reference for x510 Series
828
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
OMAIN
N
AME
S
ERVICE
(DNS) 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
To allow the device to operate as a DNS proxy, your device must have learned
about a DNS name-server to forward requests to. Name-servers can be learned
through the following means:
•
Manual configuration, using the
ip name-server
command
•
Learned from DHCP server with Option 6
This command is used to statically configure a DNS name-server for the device to
use.
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
Parameter
Description
<ip-addr>
The IP address of the DNS server that is being added to the name
server list. The address is entered in the form A.B.C.D for an IPv4
address, or in the form X:X::X:X for an IPv6 address.