C613-50170-01 Rev B
Command Reference for x510 Series
2437
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
YNAMIC
H
OST
C
ONFIGURATION
P
ROTOCOL
(DHCP) C
OMMANDS
DNS
-
SERVER
dns-server
Overview
This command adds a Domain Name System (DNS) server to the DHCP address
pool you are configuring. You can use this command multiple times to create a list
of DNS name servers available to the client. This sets the DNS server details using
the pre-defined option 6.
Note that if you add a user-defined option 6 using the
will override any settings created with this command.
The
no
variant of this command removes either the specified DNS server, or all DNS
servers from the DHCP pool.
Syntax
dns-server <
ip-address
>
no dns-server [<
ip-address
>]
Mode
DHCP Configuration
Examples
To add the DNS server with the assigned IP address 192.168.1.1 to the DHCP pool
named P1, use the following commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
dns-server 192.168.1.1
To remove the DNS server with the assigned IP address 192.168.1.1 from the DHCP
pool named P1, use the following commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
no dns-server 192.168.1.1
To remove all DNS servers from the DHCP pool named P1, use the following
commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
no dns-server
Related
Commands
Parameter
Description
<
ip-address
>
IPv4 address of the DNS server, in dotted decimal notation.