lego/challenge/dns01
Matthew Horan 348b6f3721 Resolve CNAME when creating dns-01 challenge (#791)
* Resolve CNAME when creating dns-01 challenge

It may be desirable to host the dns-01 challenge in a zone other than
the one where the challenge is presented. For example, when validating
a.example.com, the challenge may need to live on example.org.

This change resolves CNAMEs encountered when determining the FQDN of the
challenge, and replaces them with the alias.

This PR is based on the original work in #584.

Co-authored-by: Gurvinder Singh <gurvinder.singh@uninett.no>

* review: feature-flip.

* review: restore acmedns test.
2019-02-09 05:02:58 +01:00
..
fixtures Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
cname.go Resolve CNAME when creating dns-01 challenge (#791) 2019-02-09 05:02:58 +01:00
dns_challenge.go Resolve CNAME when creating dns-01 challenge (#791) 2019-02-09 05:02:58 +01:00
dns_challenge_manual.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
dns_challenge_manual_test.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
dns_challenge_test.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
fqdn.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
fqdn_test.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
nameserver.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
nameserver_test.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00
precheck.go Resolve CNAME when creating dns-01 challenge (#791) 2019-02-09 05:02:58 +01:00
precheck_test.go Refactor the core of the lib (#700) 2018-12-06 22:50:17 +01:00