NeDi Community

NeDi Software Specific => Database => Topic started by: dohco on October 05, 2015, 01:57:22 PM

Title: dnsGenerator
Post by: dohco on October 05, 2015, 01:57:22 PM
Hi,

I wanted to have all my network devices updated in DNS, so I wrote a PHP file to do that for me.
Ended up with a DNS server on the NeDi server and made a stub-zone for my network devices.
I run this script once every hour to generate a zone file and reload Bind afterwards.

Thought that maybe someone else could find this useful...
This is written for NeDi 1.4, so you might have to change line 65 to NOT convert from long to IP if you have a newer version.
Place the file in /path_to_nedi/html/dnsGenerator.php

/Conny
Title: Re: dnsGenerator
Post by: rickli on October 05, 2015, 03:42:45 PM
So you let the discovery update DNS...cool that's the spirit  8)