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

CNAME cannot be "Created" / "Updated" in Azure-DNS #4855

Open
chris8205 opened this issue Nov 7, 2024 · 0 comments
Open

CNAME cannot be "Created" / "Updated" in Azure-DNS #4855

chris8205 opened this issue Nov 7, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@chris8205
Copy link

chris8205 commented Nov 7, 2024

The CNAME cannot be created in Azure-DNS when providing the --default-targets="myfunnydummydomain.com"

External DNS creates the following entries...

Name Type TTL Value
cname-grafana TXT 300 "heritage=external-dns,external-dns/owner=*************,external-dns/resource=ingress/system/observability-grafana"
grafana CNAME 300 "myfunnydummydomain.com"

Error Message:

{"level":"error","msg":"Failed to update TXT record named 'grafana' to '\"heritage=external-dns,external-dns/owner=*************,external-dns/resource=ingress/system/observability-grafana\"' for DNS zone 'myDNSZone.TLD': PUT https://management.azure.com/subscriptions/efa*****-****-****-****-************/resourceGroups/d-lock-rg/providers/Microsoft.Network/dnsZones/myDNSZone.TLD/TXT/grafana\n--------------------------------------------------------------------------------\nRESPONSE 409: 409 Conflict\nERROR CODE: Conflict\n--------------------------------------------------------------------------------\n{\n \"code\": \"Conflict\",\n \"message\": \"The record could not be created because a CNAME record with the same name already exists in this zone.\",\n \"details\": [\n {\n \"code\": \"CannotCreateRecordDueToCNameNamingRestriction\",\n \"message\": \"The record could not be created because a CNAME record with the same name already exists in this zone.\"\n }\n ]\n}\n--------------------------------------------------------------------------------\n","time":"2024-11-07T10:39:12Z"}

so external dns would try to create this WRONG entries...

Name Type TTL Value
cname-grafana TXT 300 "heritage=external-dns,external-dns/owner=*************,external-dns/resource=ingress/system/observability-grafana"
grafana CNAME 300 "myfunnydummydomain.com"
$${\color{red}grafana}$$ $${\color{red}TXT}$$ $${\color{red}300}$$ $${\color{red}"heritage=external-dns,external-dns/owner=*************,external-dns/resource=ingress/system/observability-grafana"}$$
@chris8205 chris8205 added the kind/bug Categorizes issue or PR as related to a bug. label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant