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:


Leave a response

You must be logged in to post a comment.

Categories