From d0b73f109eada31fdd584986da347a2ddd5adbe0 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Fri, 2 Mar 2018 12:25:11 -0600 Subject: [PATCH] added section 5a Describes usage of dns_pdnsMysql.sh --- dnsapi/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dnsapi/README.md b/dnsapi/README.md index f27202ca..d1a8bfb8 100644 --- a/dnsapi/README.md +++ b/dnsapi/README.md @@ -94,11 +94,17 @@ The `PDNS_Url`, `PDNS_ServerId`, `PDNS_Token` and `PDNS_Ttl` will be saved in `~ ## 5a. Use PowerDNS mysql backend to automatically issue cert -First you need to set your user:pass:database in the configuration. +First you need to set your host:user:pass:database in the configuration. +Make sure the following are in your records table: +INSERT INTO `records` (`domain_id`, `name`, `type`, `content`, `ttl`, `prio`, `change_date`) +VALUES ({your domain_id}, 'example.com', 'SOA', 'ns1.example.com.net admin.example.com 1 10800 3600 604800 3600', 120, NULL, 0), +({your domain_id}, '_acme-challenge.example.com', 'A', '{ipv4 address}', 60, NULL, 0), +({your domain_id}, '_acme-challenge.example.com', 'AAAA', '{ipv6 address}', 60, NULL, NULL, 'N', 0, NULL, 0), +({your domain_id}, 'example.com', 'CAA', '0 issue "letsencrypt.org"', 60, NULL, 0); Ok, let's issue a cert now: ``` -acme.sh --issue --dns dns_pdns-mysql -d example.com -d *.example.com +acme.sh --issue --dns dns_pdnsMysql -d example.com -d *.example.com ```