joeig / dyndns-pdns

Dynamic DNS Collector for PowerDNS
MIT License
8 stars 0 forks source link

Check Entry before update #3

Open metrax opened 5 years ago

metrax commented 5 years ago

It would be nice if the tool can check if the dns-entry is already set. I'm running the request during a cron each 5 minutes and currenty pdns is generating a new SOA Serial and send an NOTIFY/AXFR call to the slave on each request.

dbenoy commented 4 years ago

I've written a simple python script to work around this issue. It checks your DNS server and makes sure that an update is necessary before accessing the update URL: https://gist.github.com/dbenoy/f9ae2d3c29293f48506ed33155c06d58

It only updates IPv6 addresses but should be easy enough to modify if you need IPv4.