mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-03 14:40:00 +01:00
dns auth attempt returns "ERROR: Challenge is invalid! (returned: invalid)" ? #91
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 @ghost on GitHub (May 6, 2016).
I'm working on DNS auth with latest letsenctypt.sh git src,
I exec the script
which returns
My hook script adds/updates the appropriate TXT record to my local/hidden primary DNS during the script exec, which in-turn notifies the secondary, and then in ~ 1-3 minutes, it propagates out to the main public servers. E.g., aftere ~ 3 mins
The le.sh dns doc says
If the problem here^ is a timing issue, I'm unclear on what's watched,
IS the prob here that I need to 'wait'? Or is there a prob in the code itself? I'm guessing PEBKAC; would appreciate any hints.
@lukas2511 commented on GitHub (May 6, 2016):
Hey. First: Please don't call my script le.sh, that is the name of a completely different script.
This probably is a timing issue. Shortly after sending the dns update the dns server might not yet deliver the response, there can be a short window with invalid or no response, especially if you use the dns api of some dns provider.
The
read -s -r -e < /dev/ttycommand is meant to pause your hook until manual confirmation on terminal is given that the dns record is actually set. It's kinda ugly...Other ways to do this would just be a
sleep $timecommand, or to actually add some logic that queries the dns servers you are using until the record can be seen.