python module for nslookup

后端 未结 9 828
渐次进展
渐次进展 2020-12-10 00:27

Is there a python-module that\'s doing the same stuff as nslookup does? I am planning to use nslookup on digging some information regarding the domain of a URL to be scrappe

9条回答
  •  失恋的感觉
    2020-12-10 01:31

    You should use socket library http://docs.python.org/2/library/socket.html

    System function call is not a good practice in this case.

提交回复
热议问题