aiodnsasyncio 的 DNS 解决方案
aiodns 是 asyncio 的简单 DNS 解决方案
示例:
import asyncio import aiodns loop = asyncio.get_event_loop() resolver = aiodns.DNSResolver(loop=loop) f = resolver.query('google.com','A') result = loop.run_until_complete(f) print(result)
评论