11
1
I'm running Chrome on Linux. I have local DNS to resolve *.myname.com into 127.0.0.2 (I type "host whatever.myname.com" or "host myname.com" and I see the correct address). However in Chrome when I type "myname.com" it is redirected to "www.myname.com" and solve the "real" website that I don't want.
Only when I type "test.myname.com", not "www.myname.com", Chrome correctly resolves it into 127.0.0.2. I guess Chrome is trying to do funky thing with www.anything.com and anything.com.
How to fix it?
PS: the local DNS I'm using is dnsmasq. If I explicitely put myname.com into /etc/hosts Chrome resolves it correctly into 127.0.0.2, but I can't use wildcard in /etc/hosts.
PPS: I can confirm at chrome://net-internals/#dns that Chrome correctly myname.com and www.myname.com into the real public IP.
2
The "Built-in Asynchronous DNS" flag was removed from Google Chrome, thereby disabling the "fix" for this. https://chromium.googlesource.com/chromium/src/+/eabf1f5baba38d46921acd6edda594f942f7d6a1
(from http://superuser.com/a/887191/109126)
5This option was removed from Chrome, remove the answer to prevent confusion, or downvotes :D – sorin – 2015-04-24T09:15:04.340
1There's still some kind of issue here. I'm using Chrome 56 on Linux Mint, and it takes several minutes to resolve addresses after connecting to a VPN. Firefox does it immediately. It's seems that Chrome takes awhile to see changes in
/etc/resolv.conf
. – orodbhen – 2017-02-22T12:21:09.6271It's still valid in Chrome for Android. The option is called "Async DNS resolver" (chrome://flags/#enable-async-dns) – MaxChinni – 2018-04-04T10:18:23.050
1there is no such option in 69+ and disabling chrome://flags/#enable-new-preconnect (mentions DNS) doesn't help – vladkras – 2018-09-20T15:44:23.080