beautypg.com

Dns-server – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1702

background image

Dynamic Host Configuration Protocol (DHCP) Commands

Software Reference for x310 Series Switches

64.4

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

dns-server

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.

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:

To remove the DNS server with the assigned IP address 192.168.1.1 from the DHCP pool
named P1, use the following commands:

To remove all DNS servers from the DHCP pool named P1, use the following commands:

Related Commands

default-router
service dhcp-server
show ip dhcp pool
subnet-mask

Parameter

Description

<ip-address>

IPv4 address of the DNS server, in dotted decimal notation.

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

dns-server 192.168.1.1

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

no dns-server 192.168.1.1

awplus#

configure terminal

awplus(config)#

ip dhcp pool P2

awplus(dhcp-config)#

no dns-server