Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A simple library for managing DNS zones.

Project description

Project link: localzone (calzone image by sobinsergey from the Noun Project)

A low-calorie library for managing DNS zones

import localzone

with localzone.manage("") as z:
    r = z.add_record("greeting", "TXT", "hello, world!")    # 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.


  • 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.


  • BSD
  • Calzone image by sobinsergey from the Noun Project

Where did the calories go? The likely suspect.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for localzone, version 0.9.8
Filename, size File type Python version Upload date Hashes
Filename, size localzone-0.9.8-py2.py3-none-any.whl (9.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size localzone-0.9.8.tar.gz (10.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page