caddy-dns / route53

Caddy module: dns.providers.route53
MIT License
43 stars 32 forks source link

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

Closed it-praktyk closed 5 months ago

it-praktyk commented 1 year 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 5 months 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