mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
dns-01: base-domain and wildcard: all challenge deploys are done before validation #431
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fandauchytil on GitHub (Sep 16, 2019).
Problem
If "challenge type" is set to "dns-01" and in "domains.txt" are defined both fqdn and wildcard for that fqdn, script will do challenge for both of them before validation.
Info
commit
05eda91a2fExample
(Below, I replaced my domain for 'example.com'.)
dehydrated.cfg
domains.txt
Output (full output is at the end):
It sets up TXT for 'example.com' twice -- the first one is for domain 'example.com' and the second one is for '*.example.com' (so the first one will be always rewritten). First challenge will always fail, because it expects:
Z7ORPxfTRk.., but it will get9yeYs0leymz9....Full output from exmaple
@fandauchytil commented on GitHub (Sep 16, 2019):
Please look at pull req. #675, you should see a solution for the problem. Maybe you could solved it like that.
@jobe1986 commented on GitHub (Sep 16, 2019):
Just as an FYI, the overwriting of the TXT DNS resource record is caused by one of 2 possibilities. Those are either the hook script in use not taking full advantage of the DNS update API in use or a DNS update API that doesn't properly allow for the addition of records of the same name with a different value.
It should however be noted that this is not the fault of DNS itself but merely the interface or the way it is being used.
This issue has also been discussed in various ways before such as is the case with issue #554
@txr13 commented on GitHub (Sep 16, 2019):
DNS allows multiple TXT records to be set for the same hostname. That is, the validation records for both the wildcard and the root can co-exist at the same time.
Your issue appears to be a problem with either your hook script or your DNS host. It is not an issue within dehydrated.
@fandauchytil commented on GitHub (Sep 16, 2019):
(Thank you, now I understand that dilemma.)
I really want this feature and it can easily be done as a option, but on the other hand, there is no problem for me to have this local patch.
@lukas2511 commented on GitHub (Oct 4, 2019):
See https://github.com/lukas2511/dehydrated/blob/master/docs/troubleshooting.md#dns-invalid-challenge-since-dehydrated-060--why-are-dns-challenges-deployed-first-and-verified-later