Microsoft KB Archive/301908

= HOW TO: Change a Computer's Domain Name System Server from the Command Line in Windows 2000 =

PSS ID Number: 301908

Article Last Modified on 10/30/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional

-



This article was previously published under Q301908





IN THIS TASK

 * SUMMARY
 * ** Change a Computer's DNS Locally
 * Change a Computer's DNS Remotely

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

This step-by-step article describes how to change a computer's Domain Name System (DNS) server or servers from the command line, either locally or remotely. Note that you will use the Regfind.exe tool from the Microsoft Windows 2000 Server Resource Kit to complete the following procedure.

back to the top

Change a Computer's DNS Locally
To change a computer's DNS server or servers locally:
 * At a command prompt, type regfind -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\parameters old DNS value -r new DNS value(s) and then press ENTER, where old DNS value is the value the server currently has, and new DNS value(s) is the new value that you want to use. The format is dotted decimal notation.

back to the top

Change a Computer's DNS Remotely

 * From the command line, type regfind -m \\computer name -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\parameters old DNS value -r new DNS value(s), and then press ENTER, where computer name is the NetBIOS name or the Internet Protocol (IP) address of the remote computer.

NOTE: You do not need to restart your computer after you make these changes.

back to the top

Keywords: kbhowto kbHOWTOmaster KB301908

Technology: kbwin2000Pro kbwin2000ProSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.