Change DNS IP Address

Administering systems that run DNS server­dependent applications can be challenging if the DNS server is unavailable. For DNS-dependent applications to run, you usually need to switch name resolution services to another DNS server. To change a local or remote DNS client computer's DNS server, you can use the Microsoft Windows 2000 Server Resource Kit's Regfind utility.

First, open a new command window or telnet to the remote computer. Run ipconfig /all to obtain a list of configured DNS servers (save the output to a file if necessary). To change the DNS server, go to the command line and enter

regfind -p HKEY_LOCAL_
MACHINE\SYSTEM\Current
ControlSet\Services\Tcpip\parameters
<old DNS IP address> -r <new DNS IP address>

Rerun ipconfig /all to verify that the new DNS IP address is validated. Optionally, run ipconfig /flushdns to flush the DNS resolver cache. You don't need to reboot the computer.

If you need to configure the system with multiple DNS servers, simply add the second server after the first server. For example, entering

regfind -p HKEY_LOCAL_
MACHINE\SYSTEM\Current
ControlSet\Services\Tcpip\parameters
10.11.12.13 -r 10.11.12.14 10.11.12.15

adds a second server. To change the DNS server's IP address on a remote computer, enter

regfind -m \\<Computer_Name> -p HKEY_LOCAL_MACHINESYSTEM\CurrentControlSetServices\Tcpip\parameters
<old DNS IP address> -r <new DNS IP address>

Discuss this Article 4

OMAR (not verified)
on Dec 14, 2004
we shutdown all our server and in other site they use our DNS server so we change the DNS IP of all this machines with this simple but powerfull command.
Anonymous User (not verified)
on Jun 22, 2005
It seems to be appending, rather than replacing, so my DNS string is getting longer and longer.
ingram87
on Oct 25, 2011
Seems like an outdated method. Here is an easier way to do it using PsExec and Netsh: http://itswapshop.com/content/how-set-or-change-ip-addresses-gateways-subnet-masks-and-dns-servers-remotely-windows

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.