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


srvlookup is available on the Python Package Index. Simply:

pip install srvlookup


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


python nosetests


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
srvlookup-2.0.0-py2.py3-none-any.whl (5.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3
srvlookup-2.0.0.tar.gz (5.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

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