libdns / digitalocean

MIT License
10 stars 15 forks source link

prop: BUG #5

Open remotejob opened 3 years ago

remotejob commented 3 years ago

Example don't work: ERROR: POST https://api.digitalocean.com/v2/domains/NYC3/records: 404 The resource you were accessing could not be found. It must be https://api.digitalocean.com/v2/domains/records

If ZONE :="/" ERROR: POST https://api.digitalocean.com/v2/domains///records: 404 The resource you were accessing could not be found

mholt commented 3 years ago

Possibly this problem? https://github.com/libdns/digitalocean/pull/3

remotejob commented 3 years ago

No, I don't think. It's only related to libdns, in digitalocean case ZONE not used. For my opinion it's very easy to fix. Hmm.. I decide use LEGO lib. In fact in begin "CADDY" use LEGOlib for DNS-01. https://twitter.com/mholt6/status/1073103805112147968

mholt commented 3 years ago

How should we fix it?

(You can read more about why we switched from lego in https://github.com/caddyserver/certmagic/issues/71.)

remotejob commented 3 years ago

Fix, maybe somewhere: if digitalocean { not use zone else { ..... } Sorry, I don't have time exam (certmagic) project. From other side LEGO support about 50 DNS providers. Why not use it? Or at least give option use it.

mholt commented 3 years ago

From other side LEGO support about 50 DNS providers. Why not use it? Or at least give option use it.

Lego is not a general-purpose DNS library like libdns is. The only thing its providers can do is set and delete ACME TXT records. But if you're using Caddy, you can still use lego, it's just a bit clunky to configure: https://github.com/caddy-dns/lego-deprecated

remotejob commented 3 years ago

I see good! Unfortunately it my case digitalocean provider don't work for me. I have about 2000 domains to convert for https: In fact looks like it simple tupo: POST https://api.digitalocean.com/v2/domains/NYC3/records POST https://api.digitalocean.com/v2/domains/records