Skip to main content

srvlookup

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

Metadata

Release files for srvlookup 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for srvlookup 3.0.0
File Size Uploaded
srvlookup-3.0.0.tar.gz 5.2 kB Details

Release files / srvlookup-3.0.0.tar.gz

Download URL srvlookup-3.0.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8c0d96501df0117bce82ac2076a03a1c450bca43dc4cf83e54b026f6c2ed5c3e
BLAKE2b-256 checksum
How to use checksums
1849f67d6b5bd521ffc5e0019df86a7744cacc643b39345a3c850a7eee038d93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

3.0.0 This release

1 release file

2.0.0

2 release files

1.0.0

2 release files

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page