antoinerrr / dehyrated-pdns Goto Github PK
View Code? Open in Web Editor NEWhook using PowerDns
hook using PowerDns
Hello!
I'd like to suggest making two edits to this:
while ! dig @8.8.8.8 -t TXT _acme-challenge.$domain | grep "$token" > /dev/null
first, use +trace and +short instead of 8.8.8.8, because 8.8.8.8 caches stuff,
and use grep -- "$token"
, because the tokens sometimes start with -
.
Works fine with .com, doesn't work with .co.uk.
If script is run from a different directory, or out of cron, the config file isn't found.
Script can fail if mysql loginpath config exists with conflicting values as they take priority. For example if you have ~/.my.cnf with a password set this will override the config written out and read by the script.
Quick fix is to use --defaults-file instead of --defaults-extra-file.
pdns table names hardcoded, should be variables
Mysql values hardcoded into script, would be nice to be able to have a config file holding these values instead of hacking script.
letsencrypt.sh has been renamed to dehyrated for copyright/trademark reasons. This project should be renamed to reflect that.
https://doc.powerdns.com/md/authoritative/backend-generic-sql/#autoserial
You can set the serial value to 0
in the soa record to let powerdns automatically increase the serial in SOA responses.
This script will update the soa record and change the serial to 1
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.