I had the same problem. Modifying the host file did not improve page loading speed. After searching for the watch, I finally found a solution.
I changed my httpd.conf file so that the listening address is bound to a single IP address instead of all the available interfaces:
#Listen 80 Listen 127.0.0.1:80
Now all web pages load instantly, rather than ~ 10 seconds.
I hope for this help.
Edit: this did not actually solve the problem, but still was randomly slow. I must admit that I finally moved my web server to the Linux virtual machine, on which I no longer observed any slow response time.
source share