Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 2004

Change DNS IP Address

RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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>

End of Article



Reader Comments
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.

omarv December 14, 2004 (Article Rating: )


It seems to be appending, rather than replacing, so my DNS string is getting longer and longer.

Anonymous User June 22, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Microsoft Delivers Service Pack 2 Beta 2 for Vista, Server 2008

Microsoft on Tuesday announced the availability of the Beta 2 version of Service Pack 2 (SP2) for Windows Vista and Windows Server 2008. Since both operating systems were developed from the same code base, they have a common servicing structure and thus ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing