dappcore/php-plug-dns

DNS, reverse DNS and certificate integrations for the Plug framework

Maintainers

Package info

github.com/dAppCore/php-plug-dns

pkg:composer/dappcore/php-plug-dns

Transparency log

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.1 2026-07-27 14:49 UTC

This package is auto-updated.

Last update: 2026-07-27 14:49:43 UTC


README

DNS, reverse DNS and certificates for the Plug framework. ClouDNS driver.

$dns = app(Core\Plug\Dns\DnsManager::class);

$dns->zones()->create('example.com');
$dns->records()->add('example.com', 'A', 'www', '203.0.113.10');
$dns->rdns()->set('203.0.113.10', 'www.example.com');

// Certificates live here on purpose: whoever can write the TXT record is
// whoever can prove control of the name.
$dns->records()->challenge('example.com', '@', $token);
$dns->certificates()->order('example.com', $csr);

Zones are delegated to ns1–ns4.lthn.io.

Two things that bite

ClouDNS returns HTTP 200 for application errors and signals failure in the body as {"status":"Failed"}. Client checks the body, not just the status — otherwise a rejected zone creation reads as success.

host is a label, not a FQDN. '' or '@' for the apex, 'www' for a subdomain. Passing www.example.com gets you www.example.com.example.com, which the API accepts without complaint.