Build DNS zone files from python
Project description
dns_zone_builder
This Python package makes creating DNS zone files from within Python code easier.
The basic idea is to create an instance of the DnsZoneBuilder class, add resource records to it (with the add_xx_rr methods) and then print the instance into a file to use with a BIND name server.
If you don't specify a serial number, one will be created for you. It will be today's date followed by a counter that is incremented every 15 minutes (so it will go from 00 to 95).
As an added bonus, when creating a normal "forward" zone, you can add one or more network specifications (IPv4 or IPv6) to have reverse zones created for you (with the same SOA and NS information).
Refer to the main code for an example on how to use it.
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
File details
Details for the file dns_zone_builder-0.1.11.tar.gz
.
File metadata
- Download URL: dns_zone_builder-0.1.11.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 950bb4f570ab5165e4a384029cab7febd4268c8c3113258ca52dcfb1d67c84d4 |
|
MD5 | d7a802f98a5ac3ce78505556eee73a5a |
|
BLAKE2b-256 | af10c9b13ac1c325ff1e4e0ea5cecc1a4c76346cba4fd7db0086091504c4a680 |