mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 12:55:48 +03:00
[GH-ISSUE #48] CNAME records are returned as NXDOMAIN #13
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#13
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 @Yannik on GitHub (Mar 2, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/48
I'm using
<uid>.acme-dns.mydomain.orgfor the letsencrypt TXT records and would like to useacme-dns.mydomain.orgas API endpoint.These are the records I've configured in
config.cfg:In the
mydomain.orgzone I have configuredacme-dns.mydomain.org NS hostname.mydomain.orgaccordingly.Unfortunately, querying
acme-dns.mydomain.orgresults in NXDOMAIN:time="2018-03-02T11:45:27Z" level=debug msg="Answering question for domain" domain=acme-dns.mydomain.org. qtype=A rcode=NXDOMAINIs it possible to get CNAMEs to resolve correctly? I'd really prefer this over hardcoding an A-record.
@MrBMT commented on GitHub (Mar 2, 2018):
acme-dns will not serve any DNS records other than those explicitly set in the records section, or the TXT records added via the API.
What you're tying to do here won't work, so you'll need to add an A record for it instead.
@Yannik commented on GitHub (Mar 2, 2018):
Well, I did set the CNAME record using the records section.
acme-dns just needs to return the CNAME, it does not have to recursively resolve that if that's what you are thinking about.
(In fact, the ADDITIONAL section is only ever added if the CNAME target is in the same zone by most DNS servers.)
@Yannik commented on GitHub (Mar 2, 2018):
As per rfc 1034:
@Yannik commented on GitHub (Mar 2, 2018):
Ben, sorry, but your understanding here seems to be lacking. There is no need to resolve the CNAME upstream.
I have opened a PR which returns a cname (existence of such a record permitting) if the queried RR does not exist, as per the ietf dns specification.
sent from mobile
On March 2, 2018 6:21:57 PM GMT+01:00, Ben notifications@github.com wrote:
@MrBMT commented on GitHub (Mar 2, 2018):
Oops, sorry; I actually misread what you posted. Re-read it just now and realised I'd done a dumb. Good stuff on the PR.
@Queuecumber commented on GitHub (Aug 14, 2018):
Is there some trick to making this work? I wanted to use a similar setup but when I try to
dig acme-dns.mydomain.org.I just get back the CNAME record, it doesn't resolve to an A. As far as I can tell I have all the other records set up@Yannik commented on GitHub (Aug 14, 2018):
@Queuecumber That's normal. Dig does return the response (which is the CNAME target). Your operating system will resolve the CNAME target by querying the DNS server of the cname target. Try
ping acme-dns.mydomain.org. That correctly show the ip.@joohoi commented on GitHub (Aug 14, 2018):
@Yannik please refer to https://github.com/joohoi/acme-dns#dns-records and note that you need to add the A record for
acme-dns.mydomain.orgto the acme-dnsconfig.cfgrecords variable as well, as shown in the defaultconfig.cfg.@Yannik commented on GitHub (Aug 14, 2018):
@joohoi while that may be used in the default configuration, I definitely do not have any A records in my
config.cfgrecords. (I've been actively using acme-dns with this setup for a long time)@joohoi commented on GitHub (Aug 14, 2018):
Oh, and I'm sorry. I pinged the wrong user as well, just checked the username from the last comment :)
@Yannik commented on GitHub (Aug 14, 2018):
@joohoi Okay. The reason why this works is, that the client does recursively resolve the CNAME that is returned by acme-dns.
@Queuecumber commented on GitHub (Aug 14, 2018):
@Yannik Yup you're correct, using ping the name is fully resolved, I incorrectly assumed dig would do the same. Thanks for the advice!