C613-50100-01 REV C Command Reference for x930 Series 2698
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP) COMMANDS
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 option command, then you
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
default-router
option
service dhcp-server
show ip dhcp pool
subnet-mask
Parameter Description
<ip-address> IPv4 address of the DNS server, in dotted decimal notation.