Where in the registry are the entries for the DNS servers located?
January 8, 2000
A. The entries for the DNS servers are stored in the registry in the location HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters under the NameServer value, Each entry should be separated by a space. Using the Resource Kit utility REG.EXE the command to change would be as follows
reg update HKLMSystemCurrentControlSetServicesTcpipParametersNameServer="158.234.8.70 158.234.8.100" \
where 158.234.8.70 and 158.234.8.100 were the addresses of the DNS servers you wanted to configure. Note it sets the value, it does not append so ensure you enter in the existing DNS servers as well as the new ones.
This may be useful for granting users access to the internet by remotely updating their registry to know which DNS servers to use.
About the Author
You May Also Like