Strangle 0.3.0

Strangle is a Python library for parsing DNS messages using libbind.
Strangle is a Python library for parsing DNS messages using libbind. In other words: BIND for Python! Strangle allows you to see DNS messages in two ways:

Direct access to the libbind parsing functions (C-style)
A Python object with various meaningful attributes (OO-style)

Here is an example of how simple it is to parse DNS messags:

>>> import Strangle
>>> msgFile = file("test/data/www.microsoft.com-query")
>>> msg = Strangle.DNSMessage(msgFile)
>>> msg.id
47096
>>> print msg
ID : 47096

Headers:

Type : question
Opcode : 0
Authoritative : False
Truncated : False
Recursion Desired : True
Recursion Available: False
Response Code : 0

;; QUESTION SECTION:
www.microsoft.com.nsatc.net 0 IN A

>>> msg.flags.type
'question'
>>> msg.flags.recursionDesired
True

Strangle is a fork of the unmaintained Constrict library, written by the same author at his previous organization. It is available under the GNU General Public License version 2.

Requirements:

Python

Installation:

Strangle is a standard distutils-driven Python package. It also has a
C language component that must be compiled against the BIND parsing
library (libbind). For Debian, you need the "bind-dev" package,
as well as standard C development packages (gcc, libc6-dev, etc.). for
RPM-based distributions, try the bind-devel package.

1. Uncompress the archive that you have downloaded. By default, it will extract to a directory named Strangle-.

2. Change to that directory and run the install command:

# python setup.py install

3. Everything should compile properly and you should be able to use the Strangle library from any location in your system.

>>> import Strangle
>>> Strangle

>>>

What's New in This Release:

Imported from the old Constrict svn into bzr, with updates.

last updated on:
March 4th, 2008, 9:50 GMT
price:
FREE!
developed by:
Jason Smith
homepage:
www.proven-corporation.com
license type:
GPL (GNU General Public License) 
category:
ROOT \ Internet \ DNS

FREE!

In a hurry? Add it to your Download Basket!

user rating 12

2.4/5
 

0/5

Rate it!

Add your review!

SUBMIT