Chrome is very slow due to "Resolving host in proxy script..."

I'm using a proxy script to connect to the Internet. I've set it, system wide, in :

System preferences -> Network -> Advanced... ->Proxies -> Automatic Proxy Configuration

and it works well.

I've also set it in Firefox

Preferences... -> Advanced -> Network -> Connection -> Settings -> Automatic Proxy Configuration URL

and it works well too.

In Safari, which use the system proxy configuration everything works well.

BUT in chrome Version 54.0.2840.87 (64-bit), which should use also the system proxy configuration everything is very slow and I always see, in the status bar, the message :

Resolving host in proxy script...

I've found the following thread about Proxy Pac and Sierra but it doesn't help.

Any idea?

P.S. I'm using macOS 10.12.1


I was experiencing this issue while using a corporate VPN from Chrome on a Mac. I resolved it by:

  1. Getting the full hostname from running the command hostname
  2. Opening up /etc/hosts in an editor, with write permissions, e.g. sudo vi /etc/hosts
  3. Adding the name of the machine to localhost, e.g.

    127.0.0.1   localhost Eamons-MacBook-Pro.local
    
  4. Saving /etc/hosts

Caveat: It is possible that /etc/hosts may be updated by the system during reboots and upgrades, and changes could be lost.


I had a similar problem but it was only happening when using Chrome over a VPN connection, Safari was ok. Looking at the Chrome events using chrome://net-internals/#events I noticed that I had HOST_RESOLVER_IMPL_JOB events that were trying to connect to My-MacBook-Pro.local but failing. I could ping My-MacBook-Pro but not My-MacBook-Pro.local.

I resolved it by going to System Preferences -> Sharing and turning on one of the services (Printer Sharing, File Sharing etc). Once I had done that I could ping My-MacBook-Pro.local and Chrome started responding properly.