joeig/dyndns-pdns

Check Entry before update

Opened this issue · 1 comments

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.

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.