Posted by: nowiremember | August 21, 2008

Use the command line to change a system’s DNS suffix

The following command (and resulting output) will set the DNS suffix by updating the NV Domain value, which is found in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters subkey

If you don’t want to change the default DNS suffix, but instead modify only the DNS search list, you can change the SearchList value, which is found at the same registry-subkey location. The value can contain multiple entries separated by commas, such as dom1.com,dom2.com” First, let’s view the current value using the following command (with the resulting output):

Next, use the following command (with the resulting output) to update the SearchList value:

Advertisements

Responses

  1. On Windows 10, Server 2016 and Server 1709, this parameter name is no longer NV Domain. It is simply Domain.

    • Thanks for the update !


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s

Categories

%d bloggers like this: