caddy-dns / route53

Caddy module: dns.providers.route53
MIT License
38 stars 31 forks source link

When a split-view DNS is used records can be created in the private zone #39

Closed it-praktyk closed 3 weeks ago

it-praktyk commented 11 months ago

We have set a split-vew DNS.

Hosted zones have zone IDs like below - I provide them becaIse I think that it's important.

public: Z09013XXXXXXXXX3VLIRX private: Z04371XXXXXXXXXOAC4E

The DNS challenge fails because plugin try to create records in the private zone (I assume that the private zone zone is returned by AWS as the first - due to alphabethical order).

I found workaround for now. To use a separate subdomain and use dns_challenge_override_domain option but it's required additional work.

Can you implement an optional parameter zoneID?

IMHO, the libdns\route53 has that parameter implemented.

aymanbagabas commented 3 weeks ago

route53 will now select the public-zone if multiple zones with the same name exist, see https://github.com/libdns/route53/pull/19/files