Use powerdns-secondary-cleaner to delete zones on secondary PowerDNS server that were deleted on primary PowerDNS server.
Project description
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
Generic
Run the following command to create a source distribution:
python3 setup.py sdist
PyPI
Run the following command to install the package from PyPI:
pip3 install powerdns-secondary-cleaner
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
Tests
Run tests with pytest:
pytest tests/
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
Hashes for powerdns-secondary-cleaner-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 787b2a526769f681fff41c0808b8e7059c15713f3d3f9f1a049158dc0d567b0c |
|
MD5 | e69dc42b0676bedc1bde21b8f447b163 |
|
BLAKE2b-256 | 5e5a89a851022d69f2b1fd9113c0e5482458b760a5fd338b9539293ea749b626 |