forked from jforman/python-ddns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
40 lines (32 loc) · 927 Bytes
/
README
File metadata and controls
40 lines (32 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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