Acme-dns https api

I have run up an instance of acme-dns in a docker container but initially had problems starting the container relating to it not being able to generate its own certificate. I changed over to http for the setup process and can successfully request certificates using the certify the web client. I am now wanting to setup the api using https but get the following error:

DNS problem: NXDOMAIN looking up TXT for - check that a DNS record exists for this domain

I am assuming I need to enter a TXT record on my public dns for, however it does not tell me what the content needs to be?


You are correct.

There’s a base64 token string (will look like garbage) that your ACME client will give you to use as the value. I’m not really familiar with your client, but it should supply this token either visually or in a file somewhere.

1 Like


The problem is I believe the acme-dns container itself is attempting to generate its own certificate using its own built in client.

1 Like

It’s not super clear from the docs, but I believe you need to delegate the zone to itself (with a glue record).

e.g. Add on the nameservers:      IN A    <the ip address>      IN NS

Then, when a public query is made for, it will end up being queried from your acme-dns server, and that will allow it to issue a certificate for its own REST API.

The nameserver domain would need to match whatever you configure for nsname and records key in your config.


Hi _az,

It appears you are correct, originally I had my NS record as IN NS but have since changed it to The reason being I was following this guide that said potentially not all DNS hosts support an NS record pointing to itself. I also duplicated this in my acme-dns config file. While using http it could successfully request certificates. Do you know why setting it up in this way would not allow it to request its own certificate? (my CNAME records would also point to I must confess I am not very well versed in dns configuration.

1 Like

I’m not sure, sorry. It’s hard to say without seeing the configuration in action. When I checked initially, there didn’t seem to be any delegation setup at all.

Hi _az,

No problems. I initially used as I was initially having other problems but now simplified to Thanks for your help, you answer has been marked as the solution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.