From de81a7309704ac8da0677e0e4780ac435b03b00c Mon Sep 17 00:00:00 2001 From: shmilylty Date: Sat, 19 Oct 2019 18:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=89=8D=E5=8A=A0=E4=B8=8A=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E6=9F=A5=E4=B8=8D=E5=87=BA=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneforall/modules/check/axfr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oneforall/modules/check/axfr.py b/oneforall/modules/check/axfr.py index 3f20bfb..d8b56cc 100644 --- a/oneforall/modules/check/axfr.py +++ b/oneforall/modules/check/axfr.py @@ -34,7 +34,7 @@ class CheckAXFR(Module): """ logger.log('DEBUG', f'尝试对{self.domain}的域名服务器{server}进行域传送') try: - xfr = dns.query.xfr(server, self.domain, timeout=30.0) + xfr = dns.query.xfr(where=server, zone=self.domain) zone = dns.zone.from_xfr(xfr) except Exception as e: logger.log('DEBUG', str(e)) @@ -93,4 +93,4 @@ def do(domain): # 统一入口名字 方便多线程调用 if __name__ == '__main__': do('ZoneTransfer.me') - do('example.com') + # do('example.com')