import asyncio
from async_dns import types
from async_dns.resolver import ProxyResolver
from async_dns import get_nameservers
# I have tried both without (proxies=get_nameservers())
resolver = ProxyResolver(proxies=get_nameservers())
res = asyncio.run(resolver.query('www.baidu.com', types.A))
print(res)
I get error:
ValueError: reuse_port not supported by socket module
trying the readme example:
I get error:
what could be the reason?