gardener / external-dns-management

Environment to manage external DNS entries for a kubernetes cluster
Apache License 2.0
81 stars 67 forks source link

[AWS Route53] Create alias AAAA records for load balancers if target domain name has an IPv6 address #341

Closed MartinWeindel closed 9 months ago

MartinWeindel commented 9 months ago

What this PR does / why we need it: Loadbalancers on AWS provide the hostname address. If the base domain name of the NLB's hostname is a known AWS region, an alias A record is created instead of a CNAME record. If the loadbalancers supports dual-stack, the hostname address has IPv6 addresses, a separate alias AAAA record is needed to be usable with IPv6. For a DNSEntry for such targets, a DNS IP lookup is performed on mapping the CNAME to alias record(s). If the lookup returns IPv4 and IPv6 addresses on the target hostname, alias records for A and AAAA are created, respectively.

Which issue(s) this PR fixes: Fixes #340

Special notes for your reviewer:

Release note:

[AWS Route53] Create an additional alias `AAAA` record for load balancers (NLBs) if load balancer target domain name has an IPv6 address.