Q. How can I use the command line to change a system's DNS suffix?
John Savill
August 6, 2008
1 Min Read
A. The following command (and resulting output) will set the DNS suffix by updating the NV Domain value, which is found in the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters 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:
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like