-
Notifications
You must be signed in to change notification settings - Fork 49
Chrome can't resolve .dev domains #117
Comments
Sorry, I didn't see this when I created #118. |
It goes a bit further than chrome: NSSwitch is only available with glibc. Alternatives like musl don't implement it either. |
Configuring dnsmasq may be a better solution than an NSSwitch extension. A simple script like the following, placed in either
Installing the script will require to restart NetworkManager or dnsmasq. |
I created the above script as This should work on Debian, as long as the For other distributions, or if you don't use Network Manager, then installing dnsmasq will do the trick to. You should create the script in whatever the |
Please note that once dnsmasq is configured, the NSSwitch extension is no longer required, so it may eventually be deprecated —but kept as an alternative solution to dnsmasq. |
Implementing this actually caused both Chrome and Firefox to start reporting 'Connection Refused' instead! |
I am using the lastest version of Chrome (48.0.2564.116) and I am getting ERR_CONNECTION_REFUSED. I have tried the above network manager fix but with no luck. I am using Ubuntu 15.10 |
Is there an easy fix for this? |
It's quite possible (if not highly probable) that the problem lies with I personally only use the crystal version of Prax on Ubuntu Trusty and I have no problem, so I don't know. |
I was able to access my |
I found so much confusing information about prax on the web. Someone that really knows prax well should write a definitive guide. "sudo apt-get install dnsmasq resolvconf" did it for me. After that, just run prax. THANK YOU! |
How can I use |
@brunobrgs There is an open PR in the Crystal version of Prax providing that behavior: ysbaddaden/prax.cr#68 Hopefully we can get it merged and released soon, but if you don’t want to wait then you could could compile prax.cr on that branch and use that. |
I change this line here: https://github.com/ysbaddaden/prax/blob/master/ext/nss_prax.c#L63 to |
Chrome reimplements its own DNS resolver, and skips NSSwitch: https://code.google.com/p/chromium/issues/detail?id=117655 named Async DNS resolver. So Chrome isn't compatible with Prax, unless you use xip.io, switch the flag off (in Chrome < 41) --disable-async-dns or configure dnsmasq or bind or unbound locally.
Please not that all other browsers do work perfectly with the system configuration.
The text was updated successfully, but these errors were encountered: