Strangle

Strangle is a Python library for parsing DNS messages using libbind.
Download

Strangle Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Jason Smith
  • Publisher web site:

Strangle Tags


Strangle Description

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.id47096>>> print msgID : 47096Headers: 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.recursionDesiredTrueStrangle 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:· PythonInstallation:Strangle is a standard distutils-driven Python package. It also has aC language component that must be compiled against the BIND parsinglibrary (libbind). For Debian, you need the "bind-dev" package,as well as standard C development packages (gcc, libc6-dev, etc.). forRPM-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 install3. 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.


Strangle Related Software