saghul / aiodns

Simple DNS resolver for asyncio

Home Page:https://pypi.python.org/pypi/aiodns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retry behavior

maelp opened this issue · comments

commented

Hi,

it seems that when doing a query, if the DNS server does not reply, the query will be automatically retried, either by aiodns or by pycares. Do you know if there is a way to set this behavior?

For instance choose the max number of retries?

You should be able to configure that with a kwarg to the resolver init. Check the pycares docs since we accept those options.