How do I resolve an SRV record in Python?

dns, networking, python, srv

Solution

You could try the dnspython library:

- http://www.dnspython.org/examples.html

- http://www.dnspython.org/docs/1.7.1/html/dns.rdtypes.IN.SRV.SRV-class.html

Problem

Something which doesn't rely on native libraries would be better.

Original source