Skip to main content

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

Download files

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

Files for Strangle, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size Strangle-0.3.1.tar.gz (22.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page