יום שלישי, 19 בנובמבר 2013

You get the error "squid Unable to determine IP address from host name

Synopsis
You get the error "squid Unable to determine IP address from host name for XXXXXX" in your web browser when trying to access a site
Article
This usually occurs if you are attempting to access an internal site, such as http://intranet If fo.r any reason squid is unable to resolve "intranet" to an IP address using the name servers provided it will display this error message.
To fix this, you should add an entry to the /etc/hosts file on your CensorNet server. To do this :-
1. Log in as root
2. Type:
nano /etc/hosts
3. On a new line, add:-
10.0.0.25    intranet
(replace with the correct hostname and IP)
4. Press CTRL+X then press Y followed by enter.
5. Restart squid
/etc/init.d/squid restart
Try the web site again and the problem should be solved.

Link:

אין תגובות:

הוסף רשומת תגובה