Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Entry before update #3

Open
metrax opened this issue Jul 29, 2019 · 1 comment
Open

Check Entry before update #3

metrax opened this issue Jul 29, 2019 · 1 comment

Comments

@metrax
Copy link

metrax commented Jul 29, 2019

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
Copy link

dbenoy commented Sep 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants