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
- Add new comment
- 2907 reads
- Email this page
Thanks for Reading and Check Other Popular Linux Topics
All time:
- Configure and Setup Squid Cache Proxy Server on Fedora Core.
- Using Linux rm command to delete, remove hidden files and folder - Basic Linux Command.
- Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command.
- Moving or rename files and directory using Linux mv command - Basic Linux Command.
- Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration.
- Get and display the size of file and directory in Linux system using du command.
- Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example.
- Create file and display file contents in Linux using cat command.
- Configure Squid to block HTTP request to specific web sites.
- Example of samba smbpasswd file and samba smbusers configuration file.

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