WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.
How to configure visible_hostname for squid
When trying to stat squid proxy server you get WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'. error message.... the best solution is to put fqdn inside squid configuration squid.conf file that usually loacated under /etc/squid/ directory. The example below show how to put the visible_hostname for squid...
Configure one or set visible_hostname.
Open and edit squid configuration file.
1. Open terminal and type in su - command and key in root password when ask to enable you to edit the configuration file.
[fedora@localhost ~]$ su -
Password:
[fedora@localhost ~]#
2. To edit squid configuration file using gedit, type in gedit /etc/squid/squid.conf and hit enter key, this open gedit editor interface to edit the squid.conf file.
[fedora@localhost ~]# gedit /etc/squid/squid.conf
[fedora@localhost ~]#
3. Then paste configuration code below in the squid configuration file. and one more thing... Please change the hostname base on your network system configuration setting.
# set visible_hostname (specify hostname)
visible_hostname squid.server.commm
3. Save and exit squid configuration file... then restart your squid proxy server..
Please note :- that this network configuration example tested on Linux Fedora 16 machine... the output may vary base on your machine use, operating system and command version
Keywords: configure visible hostname, squid visible hostname, squid publichostname
- 17275 reads
- Email this page
1 comment
thanks this was what i wonted
Submitted by Amal (not verified) on Wed, 10/24/2012 - 07:49.thanks this was what i wonted