Closed BlBana closed 3 years ago
https://github.com/FeeiCN/ESD/blob/116ff701ca543074f9f47b5b1fd09b5db527d977/ESD/__init__.py#L161-L163
传入参数 ns_addr 为 Answer object类型,dns.zone.from_xfr调用时会出现异常
ns_addr
Answer object
dns.zone.from_xfr
TypeError: str, bytes or bytearray expected, not Answer
修改 ns_addr 为 ns_addr.rrset.items[0].address解决异常情况
ns_addr.rrset.items[0].address
https://github.com/FeeiCN/ESD/blob/116ff701ca543074f9f47b5b1fd09b5db527d977/ESD/__init__.py#L161-L163
传入参数
ns_addr
为Answer object
类型,dns.zone.from_xfr
调用时会出现异常修改
ns_addr
为ns_addr.rrset.items[0].address
解决异常情况