https://github.com/joeig/certbot-pdns-proxy
Authentication with regex-based authorization for PowerDNS 4.1, designed for CertBot.
https://github.com/joeig/certbot-pdns-proxy
certbot powerdns
Last synced: 8 months ago
JSON representation
Authentication with regex-based authorization for PowerDNS 4.1, designed for CertBot.
- Host: GitHub
- URL: https://github.com/joeig/certbot-pdns-proxy
- Owner: joeig
- License: mit
- Archived: true
- Created: 2018-06-22T13:07:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-28T21:19:38.000Z (about 6 years ago)
- Last Synced: 2024-05-01T12:44:29.116Z (over 1 year ago)
- Topics: certbot, powerdns
- Language: Go
- Size: 1.15 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CertBot PowerDNS Proxy
Authentication with regex-based authorization for PowerDNS 4.1, designed for CertBot.
[](https://travis-ci.org/joeig/certbot-pdns-proxy)
[](https://goreportcard.com/report/github.com/joeig/certbot-pdns-proxy)## Setup
### Install from source
You need `go` and `GOBIN` in your `PATH`. Once that is done, install dyndns-pdns using the following command:
~~~ bash
go get -u github.com/joeig/certbot-pdns-proxy
~~~After that, copy [`config.dist.yml`](configs/config.dist.yml) to `config.yml`, replace the default settings and run the binary:
~~~ bash
certbot-pdns-proxy -config=/path/to/config.yml
~~~If you're intending to add the application to your systemd runlevel, you may want to take a look at [`init/certbot-pdns-proxy.service`](init/certbot-pdns-proxy.service).
## Usage
### Use in combination with CertBot
Deploy `scripts/authenticator.sh` and `scripts/cleanup.sh` on your servers and change the proxy URL.
You need to add your API credentials to `~/.netrc` as following:
~~~ text
machine 127.0.0.1
login foo
password bar
~~~Pass the scripts to CertBot:
~~~ bash
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook /path/to/authenticator.sh --manual-cleanup-hook /path/to/cleanup.sh -d secure.example.com
~~~## FAQ
- **Q: How can I increase the SOA's serial automatically?**
A: Set the `SOA-EDIT-API` metadata to a value of your choice, for instance `pdnsutil set-meta example.com SOA-EDIT-API INCEPTION-INCREMENT`. There might be a [default setting](https://github.com/PowerDNS/pdns/issues/6173) in the future.