-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved determination of root domain for the Variomedia DNS API #3244
Conversation
rebase to current
rebase to current
bring file in line with upstream
fulldomain=$1 | ||
i=1 | ||
domain=$1 | ||
i=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the value of "i" should be beginning from 1
, not 2
.
In dns alias mode, the fulldomain can be no _acme-challenge
prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's been tested:
- successfully with i=2
- unsuccessfully with i=1
@peterkelm Using this patch, I can confirm that it fixes the creation of TXT records with acme.sh. However, in my case it failed to remove the TXT records afterwards. Some unusual cURL output is shown and then a failure is reported:
|
The removal of the the TXT record fails when its content starts with a This problem is caused by This is due to grep interpreting everything starting with a |
Rewrite of
_get_root()
to address an issue with the handling of subdomains in the/domains
call of the Variomedia DNS API. See #2564.