To change a computer's Domain Name System (DNS) server or servers from the command line, type:
regfind -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\parameters "old DNS value" -r "new DNS value(s)"
Where old DNS value is the value the server currently has, and new DNS value(s) is the new value you want to use. The format is dotted decimal notation.
You can also perform the same operation to a computer remotely by typing the following command:
regfind -m \\computer name -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\parameters "old DNS value" -r "new DNS value(s)"
Where computer name is the NetBIOS name or the Internet Protocol (IP) address of the remote computer.
Note You do not have to restart the computer for the DNS changes to take effect.
For more information about the Regfind tool and its capabilities, at a command prompt, type: regfind /?
Article ID: 290396 - Last Review: Mar 15, 2008 - Revision: 1