dns反向解析,根据ip获得域名方法,dns域名,import sys,
文章由Byrx.net分享于2019-03-23 07:03:24
dns反向解析,根据ip获得域名方法,dns域名,import sys,
import sys, sockettry: result = socket.gethostbyaddr('66.249.71.15') print 'Primary hostname:' print ' ' + result[0] # Display the list of available addresses that is also returned print '\nAddresses:' for item in result[2]: print ' ' + itemexcept socket.herror, e: print 'Couldn't look up name:', e
相关内容
- Virtual function in Python,virtualpython,class Super:
- python的iterator object,pythoniterator,class Square
- python获得系统中所有的挂载点,python获得系统挂载,#
- Class method: __init__ and __call__,__init___call_,class Prod:
- Python调用system命令,python调用system,import osos.
- python http上传文件处理示例,python上传文件,<HTML>
- 动态修改python的系统路径,动态python路径,import syssy
- python判断字符串中是否包含某个字符,python字符串,my
- python抽象类定义,python抽象定义,class Animal
- Add a class member variable on the fly,membervariable,class C1:
评论关闭