丰富dnsquery查询模块

This commit is contained in:
Jing Ling
2020-03-02 02:54:53 +08:00
parent 13762db3c4
commit 6180b7d2ce
9 changed files with 255 additions and 50 deletions
+7
View File
@@ -242,6 +242,13 @@ class Module(object):
json.dump(result, file, ensure_ascii=False, indent=4)
return True
def gen_record(self, subdomains, record):
"""
生成记录字典
"""
for subdomain in subdomains:
self.records[subdomain] = record
def gen_result(self):
"""
生成结果