translate

This commit is contained in:
JrD
2020-05-11 18:36:50 +08:00
parent 8e0daa48a1
commit 038b91b52f
14 changed files with 230 additions and 227 deletions
+4 -3
View File
@@ -4,15 +4,16 @@ from common import utils
class Lookup(Module):
"""
DNS查询基类
DNS query base class
"""
def __init__(self):
Module.__init__(self)
def query(self):
"""
查询域名的TXT记录
:return: 查询结果
Query the TXT record of domain
:return: query result
"""
answer = utils.dns_query(self.domain, self.type)
if answer is None: