• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2413
  • Last Modified:

Update DNS records via VBScript

Is there a way to update a DNS record in a Active Directory intergrated zone via VBScript?
Would the secure updates have to de disabled for the zone for this to work?
0
ENTPF
Asked:
ENTPF
2 Solutions
 
LauraEHunterMVPCommented:
Why not just use dnscmd, much easier. http://technet2.microsoft.com/windowsserver/en/library/D652A163-279F-4047-B3E0-0C468A4D69F31033.mspx

As to your 2nd, if you're running the script/command using the appropriate security credentials, secure updates will not affect you.  (If you don't have rights to make the changes you're trying to make, then that's obviously another question.)
0
 
PakaCommented:
You can update records using vbscript but it gets pretty hairy when you need to update things other than A and reverse records.  Here's some good examples of how to do A and ptr records:
http://techtasks.com/code/viewbookcode/26

As far as rights, you can create a group that has full control of the DNS object and assign proper permissions in the DNS console, then run the script in the context of a user object that is a member of that group.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now