A simple library for managing DNS zones.
Project description
import localzone
with localzone.manage("db.example.com") as z:
r = z.add_record("greeting", "TXT", "hello, world!")
r.name # the record name, i.e. "greeting"
r.rdtype # the record type, i.e. "TXT"
r.content # the record content, i.e. "hello," "world!"
Powered by dnspython.
Features
A simple API focused on managing resource records in local zone files
Support for almost all resource record types
Auto-save and auto-serial
Built for automation
Installing localzone
$ pip install localzone
Raison d’être
Comprehensive, low-level DNS toolkits can be cumbersome for the more common zone management tasks–especially those related to making simple changes to zone records. They can also come with a steep learning curve. Enter localzone: a simple library for managing DNS zones. While localzone may be a low-calorie library, it’s stuffed full of everything that a hungry hostmaster needs.
License
BSD
Calzone image by sobinsergey from the Noun Project
Where did the calories go? The likely suspect.
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
File details
Details for the file localzone-0.9.2.tar.gz
.
File metadata
- Download URL: localzone-0.9.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 144dbff2c4685fb73a330618416610a826ae4faf6ba2c2977f30b503db295d4d |
|
MD5 | f9b334abb5c4f0ad773df399c202011a |
|
BLAKE2b-256 | 091ba708764fd5533e1bc67da662eb797904d33330dcb1132ecf0916ee74cebe |
File details
Details for the file localzone-0.9.2-py2.py3-none-any.whl
.
File metadata
- Download URL: localzone-0.9.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ed6860aad1c804fdd7cc0ff4ad7e892dd1738252f81fa17da3cd73c68b26cd |
|
MD5 | 483f8be199b0cfa17592da7a273d8a1d |
|
BLAKE2b-256 | 4eb21eecaf50094d10a5ba7d09c2cc6cde0903f3852e4e809ce118066370af0c |