Use powerdns-secondary-cleaner to delete zones on secondary PowerDNS server that were deleted on primary PowerDNS server.
Project description
python3-cyberfusion-powerdns-secondary-cleaner
Use powerdns-secondary-cleaner to delete zones on secondary PowerDNS server that were deleted on primary PowerDNS server.
The PowerDNS API is used for both the primary and secondary, so the program can run anywhere. Be it on the primary, secondary or elsewhere.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-powerdns-secondary-cleaner
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
No configuration is supported.
Usage
Syntax:
powerdns-secondary-cleaner --primary-api-url=<primary-api-url> --primary-api-key=<primary-api-key> --secondary-api-url=<secondary-api-url> --secondary-api-key=<secondary-api-key> [--dry-run]
Example when running on primary:
powerdns-secondary-cleaner --primary-api-url=http://localhost:8081 --primary-api-key=example --secondary-api-url=http://secondary.test:8081 --secondary-api-key=example
Example when running on secondary:
powerdns-secondary-cleaner --secondary-api-url=http://localhost:8081 --secondary-api-key=example --primary-api-url=http://primary.test:8081 --primary-api-key=example
Only show which zones would be deleted on secondary:
powerdns-secondary-cleaner ... --dry-run
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python3_cyberfusion_powerdns_secondary_cleaner-1.0.4.2.1.tar.gz
.
File metadata
- Download URL: python3_cyberfusion_powerdns_secondary_cleaner-1.0.4.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59833c75f1dfc413591bb9f5c0b94a1cd241d31fd80ab70cc0433afe36e82b4 |
|
MD5 | b19fd72609523b410372401dfe1fcfc2 |
|
BLAKE2b-256 | 3b0473522a9c8d8f85bb388b3ef139cf7060ef198f2b444b755f88d882aa64af |
File details
Details for the file python3_cyberfusion_powerdns_secondary_cleaner-1.0.4.2.1-py3-none-any.whl
.
File metadata
- Download URL: python3_cyberfusion_powerdns_secondary_cleaner-1.0.4.2.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d634ac5582a8486e0a79b76f4cc859117acf9282670a13dafe6c2742b269910 |
|
MD5 | bc6d10144e3157652923e5063e89ed03 |
|
BLAKE2b-256 | 67738569101d74128a8307807464642d41e904c8af01d9287b79f89877aac8d1 |