mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Problem with dns validation #329
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 @it-can on GitHub (Apr 14, 2018).
Hi,
I am testing with the DNS validation method (i have domains with http-01 and dns-01 validation). All other domains are HTTP-01 validation, but my test domain has dns validation. I have added a config file with this:
This is my
hook_dns.shscript (I only show the methods that are relevant).When running the dehydrated client I see the dns gets updated, and the script will check every minute if the dns is updated on 8.8.8.8 and 8.8.4.4 and will retry until the dns is updated. This works correct, but after the dns is correct it wil re-run the hook script with a different token_value... I cannot reproduce this.
my domains.txt file
This shows in my log file:
Can somebody help me? I have an other server with only DNS validation and I never had this issue, could it be a problem with combining HTTP-01 and DNS-01 validations?
@jobe1986 commented on GitHub (Apr 14, 2018):
When using wild card certs, validation for "example.com" and for "*.example.com" are seperate from each other, even though they both validate using "_acme-challenge.example.com". I'm not entirely sure why that is but either way that is the case. So as a result you will see two tokens set for the same name when using wild card certs like that.
@it-can commented on GitHub (Apr 14, 2018):
Okay but how do I prevent this? I have a other server with only dns validation and then it works perfectly...
@jobe1986 commented on GitHub (Apr 14, 2018):
It's normal behaviour, you don't prevent it, you simply allow it. You may need to update your script to account for multiple values with the same name.
@it-can commented on GitHub (Apr 14, 2018):
Yeah but after the second token value update on the dns, the first value is overwritten and won't validate with LE...
@jobe1986 commented on GitHub (Apr 14, 2018):
Then that would be an issue with your choice of DNS update method replacing a value instead of adding an additional value.
@it-can commented on GitHub (Apr 14, 2018):
But I cannot have 2 TXT records like this right?
_acme-challenge.example.com, that's what it's giving me...@txr13 commented on GitHub (Apr 14, 2018):
@it-can You absolutely can have multiple TXT records for the same name. Totally allowable, and commonly used (eg. one TXT for a mail server’s SPF record, and another TXT for the DKIM record).
@it-can commented on GitHub (Apr 14, 2018):
@txr13 I know, but with the same subdomain name?
@it-can commented on GitHub (Apr 14, 2018):
@lukas2511 Is there a bug in Dehydrated with dns validation and combining http-01 and dns-01 validation?
@txr13 commented on GitHub (Apr 14, 2018):
@it-can Yes, absolutely. Look at the TXT records for google.com, for example.
@it-can commented on GitHub (Apr 14, 2018):
I see this issue, has the same problem https://github.com/lukas2511/dehydrated/issues/504 will try that...
@it-can commented on GitHub (Apr 14, 2018):
Found the problem, my clean_challenge function was deleting all
_acme-challengeTXT records, not checking for the tokenvalue...