-
-
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
1 ad-guard multiple external dns with multiple domains #109
Comments
this is a documented limitaion: see https://github.com/muhlba91/external-dns-provider-adguard?tab=readme-ov-file#rule-ownership |
@muhlba91 seeing that external-dns writes TXT ownership records by default (though configurable), why are these not taken into account instead of needing comments? |
thank you for your comment. i revisited this one and compared it to the cloudflare in-tree provider:
looking at this provider now, we return all records (that are potentially managable by any external-dns) in https://github.com/muhlba91/external-dns-provider-adguard/blob/main/internal/adguard/provider.go#L142, and we apply all changes sent over in https://github.com/muhlba91/external-dns-provider-adguard/blob/main/internal/adguard/provider.go#L58. this works as follows:
looking at this, i actually don't see a reason why this shouldn't work if external-dns is configured correctly. this provider implements the required functions in the same way as, e.g., cloudflare. what will happen though is that also rules not managed by this external-dns instance are re-rendered which could cause side-effects with the newly introduced feature of adding for the sake of it, let's assume all external-dns adguard providers are configured equally. @strelok899 could you elaborate more on what you mean with @brianramseyau @strelok899 do you see an apparent flaw i missed in this analysis? |
I guess, my main point here which I didn't really correctly state... Is that if this provider is surfacing all the required information for external DNS and you have set unique |
in principle they should not interfere with each otherwhen "in principle" because adguard only accepts writing the entire list and not single entries. the problem i rather see are race conditions where both external-dns (providers) try to update the entire list at the same, or similar enough, time - as we cannot just set one rule by itself, the entire list of existing and new rules has to be sent. |
I have in my lab 2 clusters
1 ad-guard server
now when i setup cluster 1 with ad-guard to publish to cluster1.domain.com all working well.
the problem is when i setup the second cluster to the same ad-guard server with cluster2.domain.com
then both clusters turn down to infinite loop of trying to overwrite each other's settings .
is there any way to make it work?
The text was updated successfully, but these errors were encountered: