dns-server

Syntax

dns-server没有dns服务器

描述

Defines up to four DNS servers for the current DHCPv4 server pool.

The没有form of this command removes the specified DNS servers from the pool.

Command context

config-dhcp-server-pool

Parameters

Specifies the IP addresses of the DNS servers in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255.Separate addresses with a space.

权威

Administrators or local user group members with execution rights for this command.

Example

Defines two DNS servers for the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#dns-server 10.0.20.1

Deletes a DNS server from the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#没有dns服务器10.0.20.1