set protocols dhcp server pool dns-server


The set protocols dhcp server pool dns-server command configures a DNS server address for an address pool.


Command Syntax

run show vrf

set protocols dhcp server pool <pool-name> dns-server <dns-server-ip>


Parameter

Parameter

Description

pool <pool-name>

Specifies an address pool name. The value is a string of case-sensitive characters, spaces are not supported.

dns-server <dns-server-ip>

Specifies the DNS server address. The value is in dotted decimal notation.


Usage Guidelines

DNS servers are used for domain name resolution. To enable DHCP clients to communicate with devices on other networks through host names, configure the DNS server.

To enable DNS services for the DHCP client, specify the DNS server address for the address pool on the DHCP server. When allocating IP address to the client, the DHCP server sends the DNS server address to the client.

Repeatedly configure this command to configure multiple DNS servers. Each address pool can be configured with a maximum of eight DNS server addresses.


Example

  • Configure a DNS server address for an address pool.
admin@Xorplus# set protocols dhcp server pool pool1 dns-server 10.3.10.1
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.