-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS query for www.google.com failed: too many retries #78
Comments
Thanks for reporting! Similar issues have been reported before with #63 and #44 and were believed to be fixed with #74 in v0.4.10. Can you give us some more details about the platform you're using, such as: $ php --version
$ composer show Our last investigation in #74 revealed this:
Can you verify this? |
@clue, I tried php 7.0.20 and 7.1.6 (I can't change it. These versions on server)
react/stream = 0.7 or react/dns = 0.4.9 doesn't work It seems problem with php Yes, i'm using windows, but if i run this script from android it doesn't work too. |
@Buheda out of curiosity have you tried one of the examples and see if that works? |
@WyriHaximus I tried it before downgrade versions and after it. See log in first post. Doesn't work |
@Buheda Just to make sure that we don't have to fix something, too. Could you try the example in https://github.com/amphp/dns and report whether that errors out, too? |
@kelunik eh.. a have an errors
|
Thanks for reporting back, unfortunately we'll still have to investigate this further: Here's what the "DNS query for www.google.com failed: too many retries" error basically means: This component sends a UDP message (DNS query) to your DNS server and waits for a reply. If no answer is received within 5s, it will send a new UDP message and then another one again if no answer is received. If an answer is received, it will verify the response message and resolve the promise. The error shows that no answer has been received. So this basically means that we did not receive a reply messageg from your DNS server. This could be due to a number of reasons and could very likely be not something this package has control over. Can you update react/dns to the latest version again and check which DNS server you're using and whether a firewall or intermediary proxy could possibly block access to this server? You may also be able to play around with the timeout values in I hope this helps 👍 |
@clue Yes. DNS server is 8.8.8.8 I've tried also 8.8.4.4 I will try run it from local server on my PC |
@clue The hoster answered me a few minutes ago that they restricted UDP traffic. May be that is a root of problem? |
@Buheda Yes, that would be the problem here. Can you ask your provider for a DNS server that is reachable from within your network? It's likely that they may provide a custom DNS server in their network that is allowed to forward outgoing DNS requests. |
@clue hoster gave me ip adress their inner NS Server - but nothing changes if i use it.. |
@Buheda Does a |
|
|
@clue may be i can try insert their ip in other files, not only into example? Also i've found that their inner DNS ip is absent in /etc/resolv.conf |
@Buheda This is strange, the
This project does not currently use this file (see #29), but it's still strange that this isn't listed on your system. This makes me wonder how DNS works on your system in the first place and where your provider blocks your traffic? As a temporary work-around you may also be able to simply patch your #19 is also slightly related here, as we may be able to send a query over TCP/IP in case UDP connections are blocked. In any case, the example uses the same code as the higher-level If anybody else has any ideas, please share 👍 |
@clue So packets go to their inner DNS and after that they have been blocked? |
@Buheda I'm not sure I follow… The Note that the |
@clue all adresses from /etc/resolv.conf gave error But all adresses from hosts give positive answer. |
@Buheda I understand it's frustrating, but at this point there's really little we can do here unfortunately. It looks like your provider is at fault for blocking UDP traffic here. I would suggest telling your provider about this issue and ask to be whitelisted and/or to start looking for another provider. Once #19 or #80 is in, you may be able to circumvent your provider blocking certain kinds of traffic, but it appears unsound to rely on this only to circumvent your provider. In the meantime, you may be able to patch your hosts file, even pass a custom hosts file and/or use an internal DNS server as documented above. I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍 |
@clue thank's for helping me. |
Exception unreal4u\TelegramAPI\Exceptions\ClientException caught, message: DNS query for api.telegram.org failed: too many retries
I tried to use only dns too
"name": "react/dns",
"version": "v0.4.11",
from examples
but there is a fail:
DNS query for www.google.com failed: too many retries
01-one.php.txt
Google and api.telegram are enabled and visible from my network and from server network
The text was updated successfully, but these errors were encountered: