Skip to main content

Service lookup using DNS SRV records

Project description

A small wrapper for dnspython to return SRV records for a given host, protocol, and domain name as a list of namedtuples.

Version Status Coverage License

Installation

srvlookup is available on the Python Package Index. Simply:

pip install srvlookup

Example

>>> import srvlookup
>>> srvlookup.lookup('api', 'memcached')
[SRV(host='192.169.1.100', port=11211, priority=1, weight=0, host='memcache1.local'),
 SRV(host='192.168.1.102', port=11211, priority=1, weight=0, host='memcache2.local'),
 SRV(host='192.168.1.120', port=11211, priority=1, weight=0, host='memcache3.local'),
 SRV(host='192.168.1.126', port=11211, priority=1, weight=0, host='memcache4.local')]
>>>

Testing

python setup.py nosetests

Requirements

Project details


Download files

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

Source Distribution

srvlookup-2.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

srvlookup-2.0.0-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file srvlookup-2.0.0.tar.gz.

File metadata

  • Download URL: srvlookup-2.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for srvlookup-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0b2861c5f4e15b49a722b0fdecfed47d235532bdd00288fd52f096f609d8c1fd
MD5 9be1dee0a1308a1b43023b46340b8947
BLAKE2b-256 52ec99f07fd42f3b5a57f2c2c93feb73d4ba19656b9eaf5cfaf8b6041b27db21

See more details on using hashes here.

File details

Details for the file srvlookup-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for srvlookup-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8dd82fdcb567aca7b54922ded5af4bfe70465c54105116b334588ee699a3639
MD5 c36342ecade3bce794969bf723ccc6b4
BLAKE2b-256 d4b1b727ea3beb5bf257bf9f46b298cd0dd77d653d7a89715913f105f5237137

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page