skip to navigation
skip to content

Not Logged In

srvlookup 0.2.0

Service lookup using DNS SRV records

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

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),
 SRV(host='192.168.1.102', port=11211, priority=1, weight=0),
 SRV(host='192.168.1.120', port=11211, priority=1, weight=0),
 SRV(host='192.168.1.126', port=11211, priority=1, weight=0)]
>>>

Testing

python setup.py nosetests

Requirements

 
File Type Py Version Uploaded on Size
srvlookup-0.2.0.tar.gz (md5) Source 2015-06-08 5KB
  • Downloads (All Versions):
  • 35 downloads in the last day
  • 291 downloads in the last week
  • 1264 downloads in the last month