-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Custom DNS API for txt record results in "No value for the record provided" #121
Comments
Do i need to setup an alias for this subdomain for it to work? I may just be confused how these custom domain works with miab. What im trying to do is use custom domains to forward to an nginx server i have with other services running, since i gave up that ability at a DNS level because i switched my name servers to be using the dns on this box. Do i need an alias for every subdomain i want to setup with miab? |
Is this related at all? Is this an actual bug hanging around? What is the correct way to setup custom DNS entries on a MIAB server? As i said all i want to do is create a sub domain using an CNAME record that points to my other domains (eg homelab.otherdomain.tld) and a txt record for the acme challenges to work to get certificates from lets encrypt for that homelab domain from external to the MIAB. |
Hello! I don't think this is a bug, rather than a feature I've introduced a few releases ago (#28) made the documentation incorrect 😅 Since curl submits POST data as a So for your case:
You can add a TTL to the record (optional) by appending
|
Thanks for the clarification. Would be awesome to get the docs updated at some stage. But thanks for posting the correct method to solve my issues :) |
@ddavness, can we update the documentation to reflect this please? |
Also, would you mind clarifying for me, @ddavness, please? It looks like the API to add a TXT record in Power-Mailinabox now differs from that for Mailinabox? I have updated the acme.sh project's dns_miab.sh file to reflect this change, but now it seems that MIAB users are getting an error. If this is indeed only a change for P-MIAB, then I will have to create a separate dns update script for Power-Mailinabox in acme.sh. |
The context for this is im trying to setup acme on pfsense to create a wildcard cert using the
DNS-MailinaBox
method, but its failing. But that is just the context of where im hitting this issue i understand that is external to power-mailinaboxHowever, in the Custom DNS panel, at the bottom it shows an example of how this should work, where a command such as
curl -X POST --user "username@mydomain.tld:my awesome passphrase" -d "some text here" https://box.mydomain.tld/admin/dns/custom/_subdomain.mydomain.tld/txt
should result in the text record created. But instead i get the error messageNo value for the record provided
.This is the same error message i get from acme when i try to use the staging account to create a test wildcard certificate. Again i know that part is out of scope but it shows im getting the same error with two different methods. The log shows it hitting the same endpoint.
This is a brand new debian 11 VPS and is otherwise working where i can send and receive emails and access the mail and admin panels, and manually create DNS entrys. FWIW my domain is with godaddy and i changed the default nameservers to be
ns1.box.mydomain.tld
andns2.box.mydomain.tld
that both resolve to the public IP address of my VPS, so all the dns entries for my domain should be coming from the maib server.Any help with this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: