-
Notifications
You must be signed in to change notification settings - Fork 4
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
Keeps ading A records even when "update only" #7
Comments
I would like to extend the ticket and want to report that every update of the IP always generates new A-Records. |
I think the problem occurs when Caddy is restarted and the IP changed between starts of Caddy. In order to update the A record, this lib uses the identifier (ID field) that is provided by the IONOS API, when the record gets created. As long as Caddy is running and we know the ID, we can update the record using the ID. But once Caddy is restarted, the ID is gone and a new record will be created. I'll have a deeper look on the weekend ... |
If you need some help with testing, i can force a ip change with my setup. |
Just noticed that the records are also added when the Gateway changes in a Multi-WAN setup, even when caddy is not restarting |
Yes, I found a few issues in handling updates and deletes when no ID is provided. I did a major rewrite of the lib. @Aergernis , it would be great if you could test it with your setup. Build a custom caddy version with:
That should use my latest development version of libdns-ionos. Let me know if this fixes the problem, thanks. |
since i'm running caddy on my opnsense and i don't kow how to build it from source there, i'll setup e test machine and will try it with it |
My problem is, that I use Caddy as a plugin of OPNsense. The plugin uses somehow the upstream version of this Caddy repository. If the changes are related to files, that can also be found on OPNsense, I will build it myself and change the specific files. |
after some fiddling with FreeBSD i got xcaddy to work and could build caddy. DNS records are now updating correctly when IP changes. Great Job 😍 |
Great, thanks for testing. I'll make an official release now |
Hi,
the DNS is always adding A records to the DNS even when "update only" is set
dynamic_dns { provider ionos <API-KEY> domains { <DOMAIN>.de * <DOMAIN>.de @ } check_interval 300s versions ipv4 update_only }
The text was updated successfully, but these errors were encountered: