https://github.com/ags-slc/localzone
A simple DNS library for managing zone files
https://github.com/ags-slc/localzone
dns dns-record dns-zone-files localzone pypi python python-library
Last synced: 2 months ago
JSON representation
A simple DNS library for managing zone files
- Host: GitHub
- URL: https://github.com/ags-slc/localzone
- Owner: ags-slc
- License: bsd-3-clause
- Created: 2018-11-06T14:24:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T03:14:56.000Z (almost 5 years ago)
- Last Synced: 2023-02-28T02:25:52.266Z (over 3 years ago)
- Topics: dns, dns-record, dns-zone-files, localzone, pypi, python, python-library
- Language: Python
- Homepage: https://localzone.iomaestro.com
- Size: 48.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://localzone.iomaestro.com/_images/localzone.png
:align: center
:width: 100px
:height: 100px
:alt: Project link: localzone (calzone image by sobinsergey from the Noun Project)
:target: https://localzone.iomaestro.com
A low-calorie library for managing DNS zones
============================================
.. code:: python
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
--------------------
.. code-block:: shell
$ 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 `_.