-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Can't connect to local DNS name #73
Comments
Hi @rodrigowbazevedo, are you sure you're running the latest versions? This should be supported as of #66. I've verified that this does indeed work locally. |
I'm using version 2.1 I'll update it to 2.2 and test again, Thanks. |
I updated my dependencies and I still get this error |
I'd like to look into this and reproduce this locally. Can you show the output of This library essentially passes the hostname to react/socket, which passes it to react/dns. Can you see if https://github.com/reactphp/dns/blob/master/examples/01-one.php works for you? |
The output of this script was My
|
The react/dns package uses the same handling for |
I'm using it inside a docker container with docker-compose, in older versions of docker-compose when you create a link between containers he puts the hostname inside |
Interesting find. This sounds more like an issue with your environment and/or you may be affected by reactphp/socket#90. For now, you can explicitly pass your local DNS proxy address to the See also https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/ and https://docs.docker.com/engine/userguide/networking/#embedded-dns-server for more details. I hope this helps 👍 |
Perfect I think using the docker embedded DNS server will work. |
This has been fixed via reactphp/socket#152 which has just been released https://github.com/reactphp/socket/releases/tag/v0.8.10 🎉 This means that this should now work out of the box if you update react/socket to v0.4.10. Please report back if the problem persists 👍 |
Great to know I'll test it! |
I have a local DNS alias in my
/etc/hosts
just namedredis
wich points to my Redis server when I try to create the client with theFactory::createClient
using this DNS theReact\Dns\Resolver\Resolver
search for it in this server 8.8.8.8 (Google's DNS Server) and can't resolve because it's local.The text was updated successfully, but these errors were encountered: