Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Library for comprehending DNS messages using BIND parsing

Project description


Strangle is BIND for Python: a Python library for parsing DNS messages using libbind. 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 messages:

>>> import Strangle
>>> msgFile = file("test/data/")
>>> msg = Strangle.DNSMessage(msgFile)
>>> print msg
ID     : 47096
  Type               : question
  Opcode             : 0
  Authoritative      : False
  Truncated          : False
  Recursion Desired  : True
  Recursion Available: False
  Response Code      : 0

;; QUESTION SECTION: 0       IN      A

>>> msg.flags.type
>>> msg.flags.recursionDesired

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Strangle-0.3.1.tar.gz (22.0 kB) Copy SHA256 hash SHA256 Source None Aug 17, 2008

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page