how to force python httplib library to use only A requests

后端 未结 2 1299
臣服心动
臣服心动 2020-12-18 14:59

The problem is that urllib using httplib is querying for AAAA records.

I would like to avoid that. Is there a nice way to do that?

>>> impor         


        
2条回答
  •  無奈伤痛
    2020-12-18 15:48

    Look here: how-do-i-resolve-an-srv-record-in-python

    Once you resolved the correct A ip, use it in your request, instead of the dns.

提交回复
热议问题