Skip to content

pv2b/pdns_api.sh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 57 commits behind silkeh:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

pdns_api.sh

A simple DNS hook that lets Dehydrated talk to the PowerDNS API.

Usage

Add the settings for your PowerDNS API to /etc/letsencrypt.sh/config, /usr/local/etc/letsencrypt.sh/config or a config file next to pdns_api.sh:

HOST=ns0.example.com
PORT=8081            # Optional. Defaults to 8081
KEY=secret           # API key
SERVER=localhost     # Optional. Server for the API to use, usually `localhost`
VERSION=1            # Optional. API version, 0 for anything under PowerDNS 4
WAIT=300             # Optional. Delay for when slaves are slow

Configure it as a DNS hook, by adding the following to your letsencrypt.sh config:

CHALLENGETYPE="dns-01"
HOOK="./pdns_api.sh"
HOOK_CHAIN="yes"

Nested zones and subdomains are supported. These zones should be detected automatically, but can be overridden by creating a file called zones.txt in /etc/letsencrypt.sh/, /usr/local/etc/letsencrypt.sh/ or next to pdns_api.sh with the zones:

test.example.domain.tld
example.domain.tld
test.domain.tld

These zones can be added in any order.

About

A simple DNS hook that lets letsencrypt.sh talk to the PowerDNS API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%