mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[GH-ISSUE #357] Unable to obtain the corresponding TXT record through _acme-challenge.example.tld #200
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @jinrenjie on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/357
Architecture
These services all run in containers and can communicate with each other.
acme-dns.cfgis configured as follows:Get acme-dns account fulldomain TXT records:
This seems to be all working fine!
Get the NS record of
ingress.test:Get the TXT record of
_acme-challenge.ingress.test:There seems to be a problem here. In theory, both the CNAME and TXT records should be queried at the same time, but no TXT record appears. As a result, the Smallstep CA I use cannot verify the DNS challenge and cannot issue a certificate!
This problem has troubled me for a long time and I have not found a solution. I look forward to your answer, which will be of great help to me. Thank you!
@jinrenjie commented on GitHub (Jul 15, 2024):
I think the problem might be here:
When there is only one CNAME record obtained from DNS, use the value of the CNAME record as the parameter of
d.answerTXT()to obtain the TXT record in the database.Once I did this, Smallstep CA Server was able to verify and issue certificates just fine!
I don't know if this is a common practice, But I can traverse and query the TXT records on the CNAME in the cloud service provider's DNS like this:
@TRPB commented on GitHub (Aug 2, 2024):
@jinrenjie are you able to provide some more specific instructions on that fix?
I have the exact same issue and assumed it was something I'd configured incorrectly. Is there a workaround in the DNS config?
Are you saying we can't have any other CNAMEs at all on the DNS for it to work?
@jinrenjie commented on GitHub (Aug 4, 2024):
@TRPB I think the problem is that when we query the DNS for the TXT record, it doesn't process the CNAME record that exists on the DNS and then query the corresponding TXT record according to the CNAME record!
Later, I did not use this project as the DNS Challenge service provider, but wrote my own project github.com/betterde/cdns, but my project is limited to intranet development or test environment, not for production environment!