How to use netsh command to set the DNS dynamic update configuration for a specified DHCP server

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. Smile

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.

image

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! Smile

Advertisements
This entry was posted in Microsoft DHCP, Microsoft Windows, Singapore Windows User Group (SWUG) and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s