重构子域解析模块

This commit is contained in:
Jing Ling
2020-04-25 18:12:10 +08:00
parent edebcc6b92
commit d91e8f429d
8 changed files with 199 additions and 277 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ from tqdm import tqdm
import config
from config import logger
from common import resolve, utils
from common import utils
from common.module import Module
from common.domain import Domain
@@ -31,7 +31,7 @@ def get_fingerprint():
def get_cname(subdomain):
resolver = resolve.dns_resolver()
resolver = utils.dns_resolver()
try:
answers = resolver.query(subdomain, 'CNAME')
except Exception as e: