Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file python3_cyberfusion_powerdns_secondary_cleaner-1.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_powerdns_secondary_cleaner-1.1.tar.gz
Algorithm Hash digest
SHA256 e43ba6d7f6db01ffe24caa6ceddfdf398c141d573c5ba75bec6484d99688f04c
MD5 64bbe47117b81fef80a428be4c8fa958
BLAKE2b-256 87252115c3c84475575622c79e888034b5807d1c1406b37c0edf6376db6df23d

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_powerdns_secondary_cleaner-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_powerdns_secondary_cleaner-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf1b96e66fd2a68f5d6289d9da26d860abf55902fc0a2575c6b292293f21ae1
MD5 31c887b4e70b956d26e48415a9aca5db
BLAKE2b-256 51bf85397c22439e594f4cfe86b475c63962cc218f31299646a8026535b0bb2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page