Skip to content

Alle zones are retrieved -very efficient- #6382

Open
@lukasmedia

Description

@lukasmedia

We have about ~100.000 domain names / zones in powerdns and right now im testing the pdns plugin for acme.

I tested with 2 domains and it takes a long time: 6-7 minutes. In the logs i see this:

[Sun Jun 1 05:08:38 PM CEST 2025] Found domain API file: /root/.acme.sh/dnsapi/dns_pdns.sh
[Sun Jun 1 05:08:38 PM CEST 2025] Adding TXT value: 6_9PeUhNlK7zau-aaaa for domain: _acme-challenge.somedomain.nl
[Sun Jun 1 05:08:38 PM CEST 2025] Detect root zone
[Sun Jun 1 05:08:38 PM CEST 2025] GET
[Sun Jun 1 05:08:38 PM CEST 2025] url='http://pdns-myserver.someurl.nl:8081/api/v1/servers/localhost/zones'
[Sun Jun 1 05:08:38 PM CEST 2025] timeout=
[Sun Jun 1 05:08:38 PM CEST 2025] Http already initialized.
[Sun Jun 1 05:08:38 PM CEST 2025] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g '

The part "/api/v1/servers/localhost/zones" worries me because it gets alle the zones from our server which are about ~300.000 domain names. Can i modify the script so it only gets the zone its needs?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions