-
Notifications
You must be signed in to change notification settings - Fork 507
Change Cloudflare DNS to a less-known version #2467
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
Conversation
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x. |
1.1.1.1 (and 1.0.0.1) is often blocked on network level due to either buggy network devices or intentionally (like in #9106). 1.1.1.2 together with 1.0.0.2 (malware-blocking DNS) and 1.1.1.3 with 1.0.0.3 (malware and adult blocking) are less-known Cloudflare DNS addresses and as such may work more often than 1.1.1.1. It certainly helps here, I can't reach 1.1.1.1 due to buggy ISP router but can go to 1.1.1.2 easily.
@@ -230,7 +230,7 @@ parameters: | |||
errorFormat: null | |||
pro: | |||
dnsServers: | |||
- '1.1.1.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not. I don't know exactly how the React DNS Config object works but if it would randomly pick one of the servers then there's 50% chance it would pick the one that doesn't work, making debugging it a bit harder because it would sometimes work.
If it would try one and then the other one if it fails, then it would possibly introduce a delay.
Hi, are you often seeing the message "Could not download the PHPStan Pro executable ... Try different DNS servers in your configuration file"? The problem is that the way the code currently works it that it shows this message for any network problem. So it might actually not be a DNS problem, just your spotty internet connection. Is that possible? We'd need to improve this code so that it states the true problem. The problem is that when DNS resolution fails, it might also be because of a not-working internet connection, not a firewall. So I'm suggesting something like this:
WDYT? |
Hi, thanks. I've extensively debugged the problem last year already and I'm 100% certain it's DNS why I see the message. The DSL modem model I have is blocking any and all packets to 1.1.1.1, so I see the message every single time I'm trying to use Pro unless I configure anything else than 1.1.1.1. Here are some fresh tests: Ping
DNS:
Traceroute:
The results are stable as in I see them whenever I run the tests. It's the modem as confirmed by multiple other users of the same model. |
Another question I couldn't find an answer to: why use a custom DNS and not leave it up to the local resolver? It's speed? Something else? The ReactPHP component supports TCP but doesn't support DNS-over-TLS for example (there's a pull request, although seemingly abandoned 10 months ago). |
Oh god, that sucks. I'm supposed to get T-Mobile fiber internet in 2 months so hopefully it's gonna work better :D |
Thank you. BTW thank you for using PHPStan Pro. I have some ideas how to make it awesome and I plan to make it a reality later this year :) |
Oh nice! It will work better unless you get the same model of the modem (you won't unless you'd get fiber with RJ-11 connectors 😅). Not sure if the problem is anything made by Sercomm or if it's this model only, or possibly a T-Mobile firmware. |
That's how it was originally but some users have a non-working DNS setup on their computer and they're not even aware of it. They're probably just relying on the web browser configuration or something. reactphp reads the DNS config from |
Thank you :-)
Took me a while to get around to it, to realize how it could help and that it indeed can. Would you mind if I file some issues (mostly usability) I think would make it better? |
I'm aware of its many issues and I plan to rework it + add new features. So please wait for the revamp before filing the feedback :) |
Cool, will wait 😁 Honestly speaking right now the textual interface is more usable for me (partly maybe because I'm so used to it) but I have still activated the subscription (right now, even skipped trial) to keep you motivated 😊 Not sure if it works but it feels right. Looking forward, thanks! |
1.1.1.1 (and 1.0.0.1) is often blocked on network level due to either buggy network devices or intentionally (like in #9106).
1.1.1.2 together with 1.0.0.2 (malware-blocking DNS) and 1.1.1.3 with 1.0.0.3 (malware and adult blocking) are less-known Cloudflare DNS addresses and as such may work more often than 1.1.1.1. It certainly helps here, I can't reach 1.1.1.1 due to buggy ISP router but can go to 1.1.1.2 easily. See Cloudflare's own docs https://developers.cloudflare.com/1.1.1.1/setup/#1111-for-families
I have checked what the DNS is used for (for PHPStan Pro resolving only) and I know this is a workaround but it may help more users see the "Try different DNS servers" message less often. What do you think?