I always wanted to blog about this. At last, I got the time now (after work).
Have you ever been task to configure the DNS dynamic update configuration on hundreds of DHCP servers? For me, yes.
To avoid possible mistake made. Here, I will share with you on how to use netsh command to do it.
The command is as follow:
|netsh dhcp server <dhcp server IP address> scope <scope ip address> set dnsconfig A B C D|
Refer to the picture below for better understand on what is “A B C D” stands for.
To have setting as above on a server 10.0.0.100 on scope of 10.0.2.0, the command will be as follow:
netsh dhcp server 10.0.0.100 scope 10.0.2.0 set dnsconfig 1 1 1 0
If you wish to disable it. The command will be just:
netsh dhcp server 10.0.0.100 scope 10.0.2.0 set dnsconfig 0 0 0 0
Note: there are space between those numbers for DNSCONFIG!
So, if you have all the IP addresses of your DHCP servers and scope IP address (which you should have!), you can just prepare the command using Microsoft excel or merge this with Powershell script; and you can configure all your DHCP server DNS Dynamic update configuration just from a device with connections to all your DHCP servers!
Hope this can buy you more time to spend with your family! Cheers!