Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Script Needed to add IP addresses in DNS entries for multiple servers

Posted on 2014-04-04
3
489 Views
Last Modified: 2014-04-10
Script Needed to add IP addresses  in DNS entries. Also need to add domain name in  "Append these DNS suffixes (in order), NDS suffix for this connection - domain name. Also both check boxes should be marked "Register this connection's adresses in DNS and "Use this connection's DNS suffix in DNS registartion.
0
Comment
Question by:biplabmukh
3 Comments
 
LVL 17

Accepted Solution

by:
Brad Bouchard earned 500 total points
ID: 39978952
Script for adding IPs of DNS servers here:  http://stackoverflow.com/questions/18620173/how-can-i-set-change-dns-using-the-command-prompt-at-windows-8
(Make sure to change the name of the interface there)

Script for adding DNS Suffix from here:  http://arstechnica.com/civis/viewtopic.php?f=17&t=342893

Don't know about the final two but I think this would work:  http://technet.microsoft.com/en-us/library/ee692588.aspx
0
 
LVL 36

Expert Comment

by:Mahesh
ID: 39980040
You can use DNSCMD command line utility to add Host(A) records and PTR records in DNS
http://blog.scottlowe.org/2006/06/30/bulk-adding-entries-in-dns/
http://kpytko.pl/2012/08/12/dns-bulk-ptr-records-creation/
If you are running on 2008 DN server, Dnscmd command is already there
If you are running 2003 DCs, you have to download 2003 support tools to get dnscmd tool

You need to prepare Excel file with required records and with Excel concatenate function formulate dnscmd command for each host record

Also for DNS suffices you can use Group policy on OU containing Computers \ servers
The settings can be found under Computer configuration\administrative templates\dns client

Mahesh.
0
 

Author Comment

by:biplabmukh
ID: 39992271
I've requested that this question be deleted for the following reason:

Found own solution.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 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