Silke
64df07654c
Fix and cleanup fatal errors
Replace the (non-existing) `_exiterr` calls, and replace `error` & `exit` by `fatalerror`.
Fixes #25
8 місяці тому
Silke
f21f489a42
Set Content-Type header in requests
8 місяці тому
Silke
0ee8b6051f
Add test for soa_edit command
8 місяці тому
Silke
0c17f9aa7e
Change SOA-EDIT-API fallback value to DEFAULT
SOA-EDIT-API behaves like SOA-EDIT-DNSUPDATE, which has different values.
DEFAULT is the default value, and will ensure serial updates.
Fixes #23
8 місяці тому
Silke
5426532865
Fix soa_edit command
The request would not be performed when provided with more than one edit option
Fixes #24
8 місяці тому
Silke
8bbe03b857
Update link to SOA-EDIT documentation
8 місяці тому
Silke
bf578ef761
Add build status badge
1 рік тому
Silke
f5468bf3b8
Add default test config
1 рік тому
Silke
bcbf097c7c
Add Travis config
1 рік тому
Silke
8a5e332ff4
Implement and add tests
Implement test.sh which executes tests specified in the tests folder.
The tests are currently limited to checking the parameters given to curl.
1 рік тому
Armin F. Gnosa
eca54ff929
Add parameter PDNS_SUFFIX for CNAME redirection support ( #22 )
* Add parameter PDNS_SUFFIX for CNAME redirection support
10 місяці тому
Silke
b890b4d9b5
Document disabling of notify and fix default PORT
- Document the PDNS_NO_NOTIFY setting to stop sending a notify.
- Only fall back to default PDNS_PORT if not set.
1 рік тому
Silke
0a6109e77b
Add PDNS_NO_NOTIFY to disable sending a notification
1 рік тому
Silke
aba9c6a9e9
Make PDNS_PORT actually optional
1 рік тому
BohwaZ
6bcbb62200
Handle config coming from CONFIG_D directory ( #21 )
* Handle config coming from CONFIG_D directory
1 рік тому
Silke
66c10e6425
Improve cURL error handling
1 рік тому
Silke
5059ef29e6
Allow PDNS_HOST to be a URL
1 рік тому
Silke
879b6af3fa
Update licence to EUPL v1.2
- Update the licence file to a Markdown version of the EUPL v1.2.
- Update the header with contributors and the correct information.
1 рік тому
Silke Hofstra
cec594af91
Merge pull request #17 from qvr/multiple-records-in-rrset
Allow multiple tokens for single name
1 рік тому
Matti Hiljanen
612faf9b84
Allow multiple tokens for single name
1 рік тому
Silke Hofstra
2ae32e11d4
Merge pull request #15 from qvr/ignore-unknown-hooks
Ignore unknown hooks
1 рік тому
Matti Hiljanen
c5ae2150bc
Ignore unknown hooks
Avoids a few spurious API requests
1 рік тому
Chris Pritchard
1db6e23309
implemented support for wildcard domains in preperation for ACMEv2 ( #11 )
* implemented support for wildcard domains in preperation for ACMEv2
rollout
1 рік тому
Silke
a12082aee0
Fix two minor errors
2 роки тому
Silke Hofstra
03849f2f75
Merge pull request #14 from jangrewe/patch-1
Force NOTIFY after updating records
1 рік тому
Jan Grewe
665609558c
Force NOTIFY after updating records
1 рік тому
Silke
b190d44209
Merge pull request #10 from willyhun/exit_hook
Add exit_hook configuration option
2 роки тому
Laszlo Kupor
0846e0607d
Fix typos and prevent splitting and globbing
2 роки тому
Laszlo Kupor
e7811ed33c
Add exit_hook configuration option
2 роки тому
Silke
bfe85b0cfa
Add interface to show/edit SOA-EDIT
Closes #7
2 роки тому
Silke
9e5ed20a40
Namespace config and update default paths
All configuration settings now have a PDNS_ prefix.
Closes #8
2 роки тому
Silke
4d316ba704
Perform some linting
2 роки тому
Silke
b00c688a6e
Perform requests per zone
Closes #6
2 роки тому
Silke
b26fd71415
Merge pull request #9 from pv2b/master
Various bugfixes
2 роки тому
Per von Zweigbergk
b88237c98a
Search for zones starting at _acme-challenge rather than the FQDN to secure
This permits this script to be used in a deployment where powerdns is running
to control an authoritative DNS zone which is authoritative for the
_acme-challenge record only.
2 роки тому
Per von Zweigbergk
b823b0a61e
Also delete trailing dot from final zone in PowerDNS
The script attempts to enumerate and delete trailing dots from the DNS
zones present in PowerDNS. This patch fixes a bug where the final record
did not have its trailing dot properly removed.
2 роки тому
Per von Zweigbergk
aebaaaf186
Enumerate PowerDNS zones by name not by id
The id attribute of a PowerDNS zone is not guaranteed to be equal to the
actual name which is what we actually care about. For example, if the
zone name starts with a _, it is replaced with =5F. Therefore, grab zone
names rather than zone IDs.
2 роки тому
Silke
1b5116aaa0
Change letsencrypt.sh to Dehydrated
Closes #5
3 роки тому
Silke
7decac6e6b
Restructure more code into functions
3 роки тому
Silke
11e3c7bbf1
Make code formatting more consistent
3 роки тому
Silke
c8f26c02ac
Document that more options are optional
3 роки тому
Silke
a7250d3d0f
Detect SERVER and set default PORT
3 роки тому
Silke
77612d2569
Update Readme with autodetection/sorting of zones
3 роки тому
Silke
b4bfffcadb
Sort zones correctly
3 роки тому
Silke
6c0336d0d7
Detect version automatically, fix minor issues
- Request the version from the API. Falls back to version 0.
- Improve JSON parsing.
- Exit on '_cert' hooks.
- Fix url order.
- Strip trailing dots from zones.
- Catch a 'Not found' response.
3 роки тому
Silke
800b118ade
Split setup in general and domain specific part
3 роки тому
Silke
b34af8fff3
Retrieve zones from API, improve errors/debugging
3 роки тому
Silke
e8f73a839c
Merge pull request #4 from okket/master
Documentation for subdomain support
3 роки тому
Okke Timm
0136868b8d
Documentation for subdomain support
3 роки тому
Silke
0917055101
Merge pull request #3 from okket/master
Add support for subdomains
3 роки тому