Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

a thin python wrapper and caching layer for dns lookups

License

NotificationsYou must be signed in to change notification settings

nresare/dnsplug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project provides a simple high level api for performingDNS lookups. The actual DNS protocol implementation is providedby either py3dns/pydns or dnspython, depending on which of theseis available. Additionally, responses are cached to improvethe performance of multiple queries for the same value.

This code was originally written by Stuart D. Gathman as part of thepymilter project

Dependencies

Dnsplug depends on either pydns/py3dns or dnspython (attempted inthat order). If running in python2, thetyping module is also needed

Testing the module

in your virtualenv, runpip install tox and then invoketox. Thisexpects a python 2.7 and python 3.6 to be available.

Why is the module below src?

Short answer: to be able to correctly test with tox, long answerhere

TODO

  • As the copied code from pymilter notes, it is a bit inconsistentthat AAAA records are returned as binary strings but A is returnedas a dot separated octet ascii string. Let's figure out somethingbetter.
  • Figure out a way to do testing that doesn't depend on internetconnectivity. Let's mock the remote end.
  • Testing of various failure modes.
  • Set up automated testing somewhere (Travis CI?)

About

a thin python wrapper and caching layer for dns lookups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp