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.
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)]
>>>
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-0.1.0.tar.gz
(4.6 kB
view details)
File details
Details for the file srvlookup-0.1.0.tar.gz
.
File metadata
- Download URL: srvlookup-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d468fbe4c9e6c1bb38d75f5b0fc9a0137412a57421b7940862318313ac351c0c |
|
MD5 | 77a3c546fd64be2aba4df3cba7da169f |
|
BLAKE2b-256 | d1e6645a7f4af590b2d4de93a260b6efe94cbf6b1051882ad2e110824af32c95 |