...
Step 1 Create an address pool and specify the IPv4 network segment that can be dynamically allocated allocated to the DHCP clients.
set protocols dhcp server pool <pool-name> network <IPv4Net>
...
Step 6 (Optional) Configure the IP address of the DNS server and domain name for the DHCP address pool.
a) Configure the IP address of the DNS server.
...