Follow us on Twitter...
Stay up to date with the latest news, special offers and advice from CensorNet on Twitter... we are Tweeting regularly!
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
This usually occurs if you are attempting to access an internal site, such as http://intranet. If for 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.