
C613-50186-01 Rev B
Command Reference for AR2050V
723
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.
If you are running VRF-lite, you can add IPv4 or IPv6 DNS server addresses for either
the global VRF instance or for a specific VRF instance. Host names cannot be
resolved from within a VRF instance until you have added at least one name-server
to that VRF instance.
The
no
variant of this command removes the specified DNS name-server address.
Syntax
ip name-server <
ip-addr
> [suffix-list
<domain-list>
]
no ip name-server <
ip-addr
> [suffix-list]
Syntax (VRF-lite)
ip name-server [vrf <
name
>] <
ip-addr
>
no ip name-server [vrf <
name
>] <
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
•
Learned over a PPP tunnel if the neighbor advertises the DNS server
This command is used to statically configure a DNS name-server for the device to
use.
For more information about PPP and DNS, see the
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.
vrf
Apply this command to the specified VRF instance.
<name>
The name of the specific VRF instance
suffix-list
Specify domain suffixes that should be directed to this name
server
<domain-list>
The name of the DNS domain-list