Welcome, Guest. Please login or register.

Author Topic: dnsGenerator  (Read 898 times)

dohco

  • Newbie
  • *
  • Posts: 26
    • View Profile
dnsGenerator
« 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
« Last Edit: October 05, 2015, 07:47:04 PM by dohco »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2496
    • View Profile
    • NeDi
Re: dnsGenerator
« Reply #1 on: October 05, 2015, 03:42:45 PM »
So you let the discovery update DNS...cool that's the spirit  8)
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo