Skip to content

caddy-dns/powerdns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.