Я поместил это в свой файл / etc / hosts:
198.252.206.16 stackoverflowtest.com
И когда я пытаюсь stackoverflowtest.com
в моем браузере я получаю эту ошибку кальмара:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://stackoverflowtest.com/
Unable to determine IP address from host name stackoverflowtest.com
The DNS server returned:
Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Your cache administrator is webmaster.
Вместо этого:
Stack exchange
Couldn't find 198.252.206.16
...
Почему squid ломает хост-файл? Есть обходной путь?
Вам нужно будет обновить файл hosts на сервере Squid. Причина этого в том, что ваш браузер отправляет целевой URL-адрес прокси, а не локально разрешает имя хоста.