muhlba91 / external-dns-provider-adguard

External DNS webhook provider for Adguard
Apache License 2.0
24 stars 2 forks source link

Support multiple instances of AdGuardHome? #103

Closed ryanelliottsmith closed 3 weeks ago

ryanelliottsmith commented 3 months ago

I run 2 AdGuardHome instances for redundancy, with config mirrored between them through a cronjob. Looking through the documentation, I'm not sure if it's possible to support multiple AdGuardHome instances in this plugin, but that would be great if possible.

muhlba91 commented 3 months ago

as you found out already you can only specify one instance of adguard in this plugin.

as a workaround, you can run a second instance of external-dns and this plugin to account for the second adguard instance though...

i'll see how such a feature could be added with keeping the current way to specify the configuration via environment variables.

rouke-broersma commented 3 weeks ago

@ryanelliottsmith I use adguard home sync to mirror my config between primary and readonly instances, this also sync's dns records so the records only need to be injected into the primary instance by the externaldns provider.

Replication/redundancy should IMO be handled by infrastructure, not by externaldns/webhook.