Solved

Update DNS entries across a network

Posted on 2001-06-25
5
213 Views
Last Modified: 2010-04-11
Hi all you gurus out there!

Is there an easy way to change DNS entries (the IP addresses that specify where to go for DNS queries) across a range of workstations and servers? These include NT Workstation, NT Server, Win 2k Pro and Win2k Server. I want to be able to specify a list of IP addresses and (with my Domain Admin status) be able to delete a DNS server entry in each one of them. I don't want to go around to each computer and do the change manually.

We're not going to use DHCP in this case otherwise this would be an easy win.

Any ideas? Urgent.

Thanks

- Timeless
0
Comment
Question by:Timeless
5 Comments
 
LVL 13

Accepted Solution

by:
ocon827679 earned 130 total points
Comment Utility
I'm not a script writer so I don't have specifics.  But why not write a script that would go something like this:
Ping 1st IP address
If the host is alive
   Apply a regini file that changes the DNS server IP
If not alive
   Ping the next IP address
The regini file would contain the entry for HKLM\System\Current Control Set\Services\TCP/IP\Parameters\Name Server
Value - REG_SZ=name server IP

There are lots of experts here who could give you specifics on this idea.  Good Luck!
 
0
 
LVL 5

Expert Comment

by:dcgames
Comment Utility
You say you don't want to use DHCP. I assume because you don't want to use dynamic IPs.

DHCP supports assigning the SAME IP address to each client all the time (i.e. static IPs, because they don't change).

You don't have to have a "dynamic IP" network in order to benefit from DHCP.

a) Tell the client to use DHCP. However, the DHCP server has a permanent static IP address associated with the client's MAC address, so the client always gets the same IP address.

b) DHCP sets not only the IP address (which is static from the point of view of the client user) but also sets the DNS, routing, etc.

Dave
0
 
LVL 1

Author Comment

by:Timeless
Comment Utility
Okay I can see where this is going.

Clearly, DHCP is the way to do this. I have known this all along. Now I shall just beat it into the sys admin!

Thanks guys for the input all the same. Who will concede the question points to the other? Pity I can't split the points hey?
0
 
LVL 41

Expert Comment

by:stevenlewis
Comment Utility
Timeless, you can split the points.
just go to community support (the link is on the left) post a zero point question asking to do this. Include a link to this question, and tell them how you would like the points split
Steve
0
 

Expert Comment

by:RedCCameleon
Comment Utility
As requested by Timeless here is the split points:
130 points are being given to ocon827679
130 points are being given to  dcgames
40 points are being given to stevenlewis

RedCCameleon
Community Support Moderator @ Experts Exchange
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now