Solved

Update AD DNS entry manually from command line

Posted on 2013-06-19
3
587 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
  • 2
3 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 500 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 95

Expert Comment

by:Lee W, MVP
ID: 39260860
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
Resolve DNS query failed errors for Exchange
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

758 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

17 Experts available now in Live!

Get 1:1 Help Now