Comments (3)
A bit more diagnostic information:
The Azure DNS zone is "mysubdomain.mydomain.net", so the routing above happens an A-record set on "@".
If I instead change the istio VirtualService to have a DNS of "foobar.mysubdomain.mydomain.net", the behaviour changes and is correct, and the "mysubdomain.mydomain.net" there are the following records:
a-foobar A
foobar A
foobar TXT
time="2024-06-18T09:06:33Z" level=debug msg="Found 1 Azure DNS zone(s)."
time="2024-06-18T09:06:33Z" level=debug msg="Found A record for 'mydomain.mysubdomain.net' with target 'xxx.xxx.xxx.xxx'."
time="2024-06-18T09:06:33Z" level=debug msg="Failed to extract targets for 'mydomain.mysubdomain.net' with type 'NS'."
time="2024-06-18T09:06:33Z" level=debug msg="Found TXT record for 'mydomain.mysubdomain.net' with target '\"heritage=external-dns,external-dns/owner=default,external-dns/resource=virtualservice/foobar/foobar\"'."
time="2024-06-18T09:06:33Z" level=debug msg="Found TXT record for 'a-foobar.mydomain.mysubdomain.net' with target '\"heritage=external-dns,external-dns/owner=default,external-dns/resource=virtualservice/foobar/foobar\"'."
time="2024-06-18T09:06:33Z" level=debug msg="Found A record for 'foobar.mydomain.mysubdomain.net' with target 'xxx.xxx.xxx.xxx'."
time="2024-06-18T09:06:33Z" level=debug msg="Found TXT record for 'foobar.mydomain.mysubdomain.net' with target '\"heritage=external-dns,external-dns/owner=default,external-dns/resource=virtualservice/foobar/foobar\"'."
time="2024-06-18T09:06:33Z" level=debug msg="Endpoints generated from VirtualService: foobar/foobar: [foobar.mydomain.mysubdomain.net 0 IN A xxx.xxx.xxx.xxx []]"
So the issue can be narrowed down to when routing to "@".
from external-dns.
Maybe by design. @
as for root
func (p *AzureProvider) recordSetNameForZone(zone string, endpoint *endpoint.Endpoint) string {
// Remove the zone from the record set
name := endpoint.DNSName
name = name[:len(name)-len(zone)]
name = strings.TrimSuffix(name, ".")
// For root, use @
if name == "" {
return "@"
}
return name
}
ref: https://learn.microsoft.com/en-us/azure/dns/dns-zones-records#record-names
from external-dns.
Well, yes. In DNS you denote the root zone with an "@", so... I am not sure what you are getting at?
external-dns is setting the dns records correctly. The problem is that is that when the record is for the root it updates it every time, instead of just logging that it found an existing record and will do nothing.
from external-dns.
Related Issues (20)
- Issue Rate Limit Cloudflare and pods going into CLBO HOT 1
- ETCD TLS support HOT 1
- pihole provider can't authenticate when server is configured with no/empty password HOT 1
- External DNS Not Respecting f5 Virtual Server HostAliase
- External DNS not managing multiple zones HOT 7
- External DNS, Azure Private-DNS, combine-fqdn-annotation produce douplicate IP
- different domain rules // configurable rules-set
- Handling multiple Istio virtualservices with wildcard hostname in gateway HOT 1
- Why was #3588 merged?
- Allow setting DigitalOcean rate limit HOT 4
- Finer grained control over `endpoint.DNSEndpoint` custom resource HOT 11
- docs: My external-dns wasn't updating entries from gateway-api components HOT 2
- Compatibility issue between arm64 and x86_64 Error: exec /ko-app/external-dns: exec format error
- External DNS Continuously Removes and Adds DNS Entries at Each Interval
- Don't destroy all DNS records when GKE Gateway is unhealthy because of one bad HTTPRoute HOT 1
- Concurrently Create Records in Azure HOT 2
- [Feature Request] Domain Expiration Info
- Unable to generate Reverse DNS records HOT 1
- external-dns creates TXT records for CNAMEs, when using Alias in AWS Route 53
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from external-dns.