Technical field note

Blast from the Past! A PowerShell Form to Check and Update DNS

So some stuff from my Past! No we aren't in a therapy session! I thought I would bring some stuff I have built for customers in the past, this one was a script to validate DNS records and perform an update if needed.

Adam Nichols · January 24, 2023

So some stuff from my Past! No we aren’t in a therapy session! I thought I would bring some stuff I have built for customers in the past, this one was a script to validate DNS records and perform an update if needed. This was written for Microsoft DNS, and for those of you aware with Windows Server DNS feature every user can query any record by default this is kind of the point of DNS it’s a look up service to take easy to remember URLs like BING.com and translate them to a Physical address or IP address.

Validating a Record in DNS:

The customer I was working with had an environment which had many legacy systems and needed a method for techs to validate DNS records for their line of work, these records were critical to their business and often would be updated depending on the circumstances of the business. Needless to say they needed a tool to make it easy for anyone to validate a single record without heavy tools like RSAT(Remote Server Administration Toolkit) or granting access to more than needed. So for look up this did the trick.

Updating A record in DNS:

Now updating as we know is more challenging partially by default only admins have access to update DNS. But Windows DNS does give us the ability to Delegate Access and even on a per record level, so in this case we used a Domain Group and delegated  access to specific record to the engineers so they could update if needed without granting access to the entire DNS zone..

Here are some Screen Shots and a quick Demo..

Here is the Script and its available on GitHub.

Client/DNSCheckUpdateForm at master · Mauvlans/Client (github.com)