8 ms·
But you have to have your dns api key loaded and many dns providers don’t allow api keys per zone. I do like it but a compromise could be awful.
by clvx 1y ago
But you have to have your dns api key loaded and many dns providers don’t allow api keys per zone.
I do like it but a compromise could be awful.
- grim_io 1y agoSounds like a DNS provider problem. Why would Nginx feel the need to compromise because of some 3rd party implementation detail?
- toomuchtodo 1y agoBecause users would pick an alternative solution that meets their needs when they don't have leverage or ability to change DNS provider. Have to meet users where they are when they have options.
- bananapub 1y agono you don't, you can just run https://github.com/joohoi/acme-dns https://github.com/joohoi/acme-dns anywhere, and then CNAME _acme_challenge.realdomain.com to aklsfdsdl239072109387219038712.acme-dns.anywhere.com. then your ACME client just talks to the ACME DNS api, which let's it do nothing at all aside from deal with challenges for that one long random domain.
- rglullis 1y agoI've been hoping to get ACME challenge delegation on traefik working for years already. The documentation says it supports it, but it simply fails every time. If you have any idea how this tool would work on a docker swarm cluster, I'm all ears.
- Arnavion 1y agoYou can do it with an NS record, ie _acme_challenge.realdomain.com pointing to the DNS server that you can program to serve the challenge response. No need to make a CNAME and involve an additional domain in the middle.
- 8organicbits 1y agoThere's a SaaS version as well, if you don't want to self-host. https://docs.certifytheweb.com/docs/dns/providers/certifydns/ https://docs.certifytheweb.com/docs/dns/providers/certifydns...
- hashworks 1y agoIf you host a hidden primary yourself you get that easily.
- Sesse__ 1y agoMany DNS providers also don't support having an external primary.
- nulbyte 1y agoDo most of them let you add an NS record?
- qwertox 1y agoAnd if they don't, you might consider switching to Cloudflare for DNS hosting.
- alanpearce 1y agoHurricane Electric support a hidden primary as part of their free DNS nameserver service (do you actually want to expose your primary when someone else can handle the traffic?) https://dns.he.net https://dns.he.net
- Sesse__ 1y agoYup, but it's a bit of a dance for bootstrapping, since they require you to already have delegated to them, but some TLDs require all NSes to be in sync and answer for the domain before delegating…
- rfmoz 1y agoGive a try to DNSMadeEasy or RcodeZero
- xiconfjs 1y agoif even PowerDNS doesn‘t support it :(
- tok1 1y agoTrue for API but you can do DynDNS updates (RFC 2136), TSIG-authenticated on a per-zone basis. [1] Can even be controlled quite granularly with a Lua-based updatepolicy, if you want e.g. restricting to only the ACME TXT records. [2] [1] https://doc.powerdns.com/authoritative/dnsupdate.html https://doc.powerdns.com/authoritative/dnsupdate.html [2] https://github.com/PowerDNS/pdns/wiki/Lua-Examples-(Authoritative) https://github.com/PowerDNS/pdns/wiki/Lua-Examples-(Authorit...
- ddtaylor 1y agoIt's a bit of a pain in the ass, but you can actually just publish the DNS records yourself. It's clear they are on the way out though as I believe it's only a 30 day valid certificate or something. I use this for my Jellyfin server at home so that anyone can just type in blah.foo regardless of if their device supports anything like mDNS, as half the devices claim to support it but do not correctly.
- qwertox 1y agoYou can make the NS record for the _acme-challenge.domain.tld point to another server which is under your control, that way you don't have to update the zone through your DNS hoster. That server then only needs to be able to resolve the challenges for those who query.
- jacooper 1y agoHow?
- dwood_dev 1y agoUsually you just CNAME it. You can cname _acme-challenge.foo.com to foo.bar.com. Now, if when you do the DNS challenge, you make a TXT at foo.bar.com with the challenge response, through CNAME redirection, the TXT record is picked up as if it were directly at _acme-challenge.foo.com. You can now issue wildcard certs for anything for foo.com. I have it on my backlog to build an automated solution to this later this year to handle this for hundreds of individual domains and then put the resulting certificates in AWS secrets manager. I'm going to also see if I can make some sort of ACME proxy, so internal clients authenticate to me, but they cant control dns, so I make the requests on their behalf. We need to get prepared for ACME everywhere. In May 2026, its 200 day certs, it only goes down from there.
- andreashaerter 1y agoCNAMEs. I do this for everything. Example: 1. Your main domain is important.example.com with provider A. No DNS API token for security. 2. Your throwaway domain in a dedicated account with DNS API is example.net with provider B and a DNS API token in your ACME client 3. You create _acme-challenge.important.example.com not as TXT via API but permanent as CNAME to _acme-challenge.example.net or _acme-challenge.important.example.com.example.net 4. Your ACME client writes the challenge responses for important.example.com into a TXT at the unimportant _acme-challenge.example.net and has only API access to provider B. If this gets hacked and example.net lost you change the CNAMES and use a new domain whatever.tld as CNAME target. acme.sh supports this (see https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mo...; this also works for wildcards as described there), most ACME clients do. I also wrote an acme.sh Ansible role supporting this: https://github.com/foundata/ansible-collection-acmesh/tree/main/roles/run https://github.com/foundata/ansible-collection-acmesh/tree/m.... Example values: [...] # certificate: "foo.example.com" with an additional "bar.example.com" SAN - domains: - name: "foo.example.com" challenge: # parameters depend on type type: "dns" dns_provider: "dns_hetzner" # CNAME _acme-challenge.foo.example.com => _acme-challenge.foo.example.com.example.net challenge_alias: "foo.example.com.example.net" - name: "bar.example.com" challenge: type: "dns" dns_provider: "dns_inwx" # CNAME _acme-challenge.bar.example.com => _acme-challenge.example.net challenge_alias: "example.net" [...]
- immibis 1y agoGeneral note: your DNS provider can be different from your registrar, even though most registrars are also providers, and you can be your own DNS provider. The registrar is who gets the domain name under your control, and the provider is who hosts the nameserver with your DNS records on it.
- qwertox 1y agoYes, and you can be your own DNS provider only for the challenges, everything else can stay at your original DNS provider.
- quicksilver03 1y agoIs having one key per zone worth paying money for? It's on the list of features I'd like to implement for PTRDNS because it makes sense for my own use case, but I don't know if there's enough interest to make it jump to the top of this list.
- yupyupyups 1y agoIt's time for DNS providers to start supporting TSIG + key management. This is a standardized way to manipulate DNS records, and has a very granular ACL. We don't need 100s of custom APIs. https://en.m.wikipedia.org/wiki/TSIG https://en.m.wikipedia.org/wiki/TSIG
- reactordev 1y agoThe whole point is to abstract that from the users so they don’t know it’s a giant flat file. Selling a line at a time for $29.99. (I joke, obviously)
- withinboredom 1y agoDigital Ocean DNS is free (it’s the only reason I have an account there)
- fmajid 1y agoMy company's DNS provider doesn't even have an API so I delegated to a subdomain, hosted it on PowerDNS, and used Lego to automate the ACME.
- UltraSane 1y agoThis concerned me greatly so I use AWS Route53 for DNS and use an IAM policy that only allows the key to work from specific IP addresses and limit it to only create and delete TXT records for a specific record set. I love when I can create exactly the permissions I want. AWS IAM can be a huge pain but it can also solve a lot of problems. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceip https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_p... https://repost.aws/questions/QU-HJgT3V0TzSlizZ7rVT4mQ/how-do-route-53-resource-record-set-iam-policies-work https://repost.aws/questions/QU-HJgT3V0TzSlizZ7rVT4mQ/how-do... https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/specifying-conditions-route53.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/sp...