How do I resolve an SRV record in Python?

后端 未结 4 1268
失恋的感觉
失恋的感觉 2020-12-18 00:43

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

4条回答
  •  一生所求
    2020-12-18 01:11

    twisted has an excellent pure-python implementation, see twisted.names sources (especially dns.py). If you can't use all of their code, maybe you can extract and repurpose their Record_SRV class from that file.

提交回复
热议问题