Welcome, Guest. Please login or register.

Author Topic: Powershell script for updating DNS records  (Read 2133 times)


  • Newbie
  • *
  • Posts: 25
    • View Profile
Powershell script for updating DNS records
« on: December 08, 2015, 01:16:11 PM »
Hi all!

Inspired by the post by user dohco for a script that will update the DNS with the devices from NeDi I wrote the following script for us windows users that have the DNS integrated into the AD domain.

The thought process behind it is that you can run it as a scheduled task on a server and it will update the DNS for you. Since our devices normally don't change their IP that often you could run it like once every night.

I have tried to document it as best I can but a normal run would look something like in the included example:

Remember to allow access to the MySQL database. I also had to add a new user with admin rights.

Would love to get feedback if you thing something is missing or should be handled in another way.


  • Administrator
  • Hero Member
  • *****
  • Posts: 2777
    • View Profile
    • NeDi
Re: Powershell script for updating DNS records
« Reply #1 on: December 08, 2015, 08:46:13 PM »
Cool, thanks for this!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!