The set protocols dhcp server pool dns-server command configures a DNS server address for an address pool.
run show vrf
set protocols dhcp server pool <pool-name> dns-server <dns-server-ip>
Specifies an address pool name. The value is a string of case-sensitive characters, spaces are not supported.
Specifies the DNS server address. The value is in dotted decimal notation.
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.
- 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