Vjz1
asked on
Update AD DNS entry manually from command line
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER