?
Solved

Update AD DNS entry manually from command line

Posted on 2013-06-19
3
Medium Priority
?
606 Views
Last Modified: 2013-06-19
I run active directory integrated DNS, and I allow secure and non secure updates, primarily so workgroup servers can register with my DNS server.

I have 2 linux machines that run DHCP, and I'd like them to also register with my AD DNS server, but I just can't figure it out.

I've given up trying to get that to work properly, I'm ok with that.  I put the entries in manually.  The issue becomes when I fail over to my DR site, and the machine takes on its new ip address (by design) DNS doesn't get updated

What I want to do as a work around, is create a script that I can invoke, that will reach out to my AD DNS server, and change the DNS record for the host.  I know what the address will be (using a DHCP reservation) so all I need to do is have a script that can update DNS, and I can configure it to run when I'm in a failover state.

So bottom line, is there a way to update AD DNS from the command line, for an A record that already exists?  If there is, can I can easily make the changes from the command line, I'm sure I can whip up a script that fits my needs.

Thanks.
0
Comment
Question by:Vjz1
[X]
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
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Lee W, MVP earned 2000 total points
ID: 39260853
Not near a server to check it - but look at DNSCMD.
0
 

Author Closing Comment

by:Vjz1
ID: 39260859
That's what I'm looking for.  thanks
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 39260860
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
Suggested Courses

764 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