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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve API to allow for external-dns (DDNS) integration #1487

Closed
onedr0p opened this issue May 16, 2024 · 2 comments
Closed

Improve API to allow for external-dns (DDNS) integration #1487

onedr0p opened this issue May 16, 2024 · 2 comments

Comments

@onedr0p
Copy link
Sponsor Contributor

onedr0p commented May 16, 2024

Hi 馃憢馃徏

I came across an interesting use-case for blocky. I would love to have external-dns push records to blocky using DDNS.

external-dns currently supports writing a webhook to integrate services that are not included by default. Outside the original ask of supporting DDNS, the webhook is something I could look at implementing since it doesn't look that hard to create a webhook. Someone wrote one for adguard home and it looks pretty easy to implement given Blocky's API was improved.

I'll try to post a follow-up with what is needed from the API.

Thanks!

@onedr0p onedr0p changed the title Improve API to allow for external-dns integration Improve API to allow for external-dns (DDNS) integration May 16, 2024
@DerRockWolf
Copy link
Contributor

If I got it correctly, you essentially want blocky as a target for external-dns.

With the current architecture of blocky this is AFAIK impossible. Blocky's configuration is declarative and blocky is entirely stateless.

However, you could probably achieve this, without needing to extend or change blocky, by utilizing the hosts-file feature. The webhook could then create a hosts file and save it at a persistent location where blocky can then read & refresh it from.

@onedr0p
Copy link
Sponsor Contributor Author

onedr0p commented May 28, 2024

It would just be dynamically inserting DNS records, there wouldn't need to be any state on blocky side since external-dns runs at a given interval (I have it set to run every minute with their other providers)

However I don't have a use-case for this right now so I'll go ahead and close the issue.

@onedr0p onedr0p closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
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