Open ghost opened 1 year ago
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 :sweat_smile:
Since curl submits POST data as a x-www-form-urlencoded
you'll want to prepend value=
before the actual value you want (this is valid for all record types!)
So for your case:
curl -X POST --user "username@mydomain.tld:my awesome passphrase" -d "value=some text here" https://box.mydomain.tld/admin/dns/custom/_subdomain.mydomain.tld/txt
You can add a TTL to the record (optional) by appending &ttl=<seconds>
. Example:
curl -X POST --user "username@mydomain.tld:my awesome passphrase" -d "value=some text here&ttl=3600" https://box.mydomain.tld/admin/dns/custom/_subdomain.mydomain.tld/txt
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 :)
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.