SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

PyBINDUtils - Justin Boswell <jwb@ultrazone.org>

A suite of Python libraries designed to make interactions with BIND zonefiles less painful. This is an early release of the package, with an example script and the basic parser and writer libraries, as well as the common data objects needed to work with DNS records.

This library grew out of a need to convert a few hundred zonefiles of varying formats into a common format that was clean, human readable, and correct.

See the example converter.py script, which takes in a zonefile and its origin and spits out a cleaned up version of the same zonefile with a new serial and in the format chosen by the user.

Currently the library supports SOA, NS, MX, A, and CNAME records. Support for the other record types will likely be forthcoming.

INSTALLATION
Installing this is as simple as copying the BINDUtils folder into your local Python site-packages directory. You could also use the library directly by placing it in the same directory as your script.

TESTING
To see what PyBINDUtils can do, try the following with the messy example zonefile included in this package:
python converter.py example.com example.com Then compare example.com and example.com.new


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.