You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application works in a Windows environment where internet dropouts may happen. If the app makes a DNS query at such a moment, it can't get the answer even when the connection has been re-established.
Let's look at an example - I've taken the code from the repository __main__.py file and have changed only two last lines to make a cycle:
After running the changed __main__.py I get: Error: (11) Could not contact DNS servers. Even after the network establishment (or filter removal via netsh wlan delete filter <...>) during the working script, I still receive the same error message with no successful answer. Only a full script re-run helps in this situation.
I'm not sure whether this issue lies inside c-ares or not, as I wasn't able to make it run on Windows, but presumably you may know better.
The text was updated successfully, but these errors were encountered:
I don't have time, now, sorry. The solution proposed in aio-libs/aiodns#124 is correct though, so adding the extra required API to pycares is acceptable. Feel free to send a PR, or I'll get to it when I have time.
My application works in a Windows environment where internet dropouts may happen. If the app makes a DNS query at such a moment, it can't get the answer even when the connection has been re-established.
Let's look at an example - I've taken the code from the repository
__main__.py
file and have changed only two last lines to make a cycle:For imitations of a network outage, I apply the following command (Windows):
After running the changed
__main__.py
I get:Error: (11) Could not contact DNS servers
. Even after the network establishment (or filter removal vianetsh wlan delete filter <...>
) during the working script, I still receive the same error message with no successful answer. Only a full script re-run helps in this situation.I'm not sure whether this issue lies inside
c-ares
or not, as I wasn't able to make it run on Windows, but presumably you may know better.The text was updated successfully, but these errors were encountered: