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

July 19, 2011 • Customer Services       
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 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.

Related articles


Last modified on Tue, July 19, 2011 « Back