If DHCP clients on your network use DNS and you want them to receive DNS configurations through DHCP, configure the DHCP server to provide DNS configurations.
system-view
Create a DHCP Option template and enter the DHCP Option template view.
dhcp option template template-name
By default, no DHCP Option template is created.
To allocate network parameters except IP addresses to static clients, configure a DHCP Option template. Network parameters configured in the DHCP Option template view take effect only for static clients. For static clients, if a network parameter is configured in both the DHCP Option template view and global address pool view, only the configuration in the DHCP Option template view takes effect.
To allocate only IP addresses to static clients (for details, see (Optional) Configuring Fixed IP Addresses in an Address Pool), you do not need to configure a DHCP Option template.
Configure the DNS server IP address to be allocated to DHCP clients.
dns-list ip-address &<1-8>
By default, no DNS server IP address is configured.
Each address pool can be configured with a maximum of eight DNS server IP addresses.
Configure the DNS domain name suffix to be allocated to DHCP clients.
domain-name domain-name
By default, no DNS domain name suffix is configured.
If you need to configure other items in the DHCP Option template view, complete them first before performing the following steps.
quit
ip pool ip-pool-name
static-bind ip-address ip-address mac-address mac-address option-template template-name