Skip to content

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

License

Notifications You must be signed in to change notification settings

ryangsteele/srvlookup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srvlookup

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

PyPI version Build Status

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%