Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 973 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 973 Bytes

PowerDNS module for Caddy

This package contains a DNS provider module for Caddy. It can be used to manage DNS records with a PowerDNS.

Caddy module name

dns.providers.powerdns

Config examples

To use this module for the ACME DNS challenge, configure the ACME issuer in your Caddy JSON like so:

{
	"module": "acme",
	"challenges": {
		"dns": {
			"provider": {
				"name": "powerdns",
				"server_url": "{env.POWERDNS_SERVER_URL}",
				"api_token": "{env.POWERDNS_API_TOKEN}"
			}
		}
	}
}

or with the Caddyfile:

tls {
	dns powerdns {env.POWERDNS_SERVER_URL} {env.POWERDNS_API_TOKEN}
}

You can replace {env.POWERDNS_SERVER_URL} and {env.POWERDNS_API_TOKEN} with the actual server URL and API token if you prefer to put it directly in your config instead of an environment variable.