PDA

View Full Version : DNS 'A' Host addresses via scripting? (W2K)



guyver_news
07-02-2002, 04:22 PM
Dear all,

I wish to input a lot of 'A' Host DNS entries into my windows 2000 DNS server.

Is there any way of using either scripting or via the command line of inputing from a CSV list I have created with the host name and IP into DNS?

For instance:

Servername 192.168.0.1
Server2name 192.168.0.2
Server3name 192.168.0.3
.......
.......


Any thoughts? Let me know

Thanks

darkness
07-05-2002, 07:22 PM
Couple questions - Does it the DNS service have an import function? (I haven't had to play with ours in so long I think I had it running on nt 3.51. Anyhow if you can do am import you could create a form to enter it and then create a text file with the entries.

Option B- Could do send Keys to automate open application and type the entries for your. It's a little more complex but it works well. If you like I can send you a couple scripts I have written that do this, just drop me an email.

Michael.Mclaughlin@mnsu.edu

Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato

guyver_news
07-10-2002, 09:31 AM
I am unsure if there is an Import method like those services such as DHCP using netsh commands.

However, I will try and examine this further.

Thanks on the tip on using send keys. I may or may not use this method, but i will use this as a backup means.

Thanks for your time.

Any further ideas, post them here.