Script to add work group computers to  DNS (A and PTR Records)

jskfan used Ask the Experts™
add work group computers to  DNS (A and PTR Records)

I have computers in work group. I want their hostnames to be add to DNS Forward and Reverse lookup zones( A & PTR Records)

Thank you
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
This will be difficult...

1) A records will be easy if you serve the zone records for your domain yourself.

2) PTR records are owned by the hosting/provisioning company you use, which will require either some interaction via an API call or manual human steps or potential (for many companies) you must open a support ticket to complete a PTR change.


OK Thank you
assuming you use lan ips for your lan computers, the above should not be an issue.

most likely, your dhcp server is hooked to a dns server or capable of updating one.

if not, you probably have a static list of hosts to add to your existing dns server. if you do not have one, you can setup one or use one provided by an existing equipment

tell us about your environment if you are unsure what would be best in your case : number of computers, how they get their ips, existing network equipment ...
David FavorFractional CTO
Distinguished Expert 2018

You're welcome!

Good luck!
Shaun VermaakSenior Consultant
Awarded 2017
Distinguished Expert 2018

If you use Microsoft DHCP the DNS will populate automatically

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial