Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python wrapper around managing DNS Records

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 add_cname.py
Octocat-spinner-32 add_dnsrecord.py
Octocat-spinner-32 delete_dnsrecord.py
Octocat-spinner-32 keyutils.py
Octocat-spinner-32 license.txt
Octocat-spinner-32 printzone.py
README
ManageDNS README
=================

This script strives to make it easy to manipulate
BIND DNS zone records managed by DDNS.

Core Requirements
=================
* Python
* python-dnspython
* BIND server using static keys for 
  zone update authorization


Modules
==================

keyutils
========
read_tsigkey: This will take as input a file containing the TSIG key stanza, and output the
	      algorithm used and tsig secret keystring for dynamic updates.
	Input: tsig keyfile, keyname
	Output: key algorithm, tsig secret keystring


Examples
====================

Reading key files:
>>> import keyutils
>>> keyutils.read_tsigkey("testkey.txt","rndc-test")
algo: hmac-md5
tsigsecret: foobarbazcoroflzomgbbq
('hmac-md5', 'foobarbazcoroflzomgbbq')
>>> keyutils.read_tsigkey("testnokey.txt","rndc-test")
A problem was encountered opening your keyfile.
1
>>> keyutils.read_tsigkey("testkey.txt","rndc-testf")
no key found
1
Something went wrong with that request. Please try again.