Re: [squid-users] WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 02 Nov 2013 12:17:21 +1300

On 2/11/2013 9:39 a.m., Dr.x wrote:
> hi ,
> in smp , im trying to let the acl load on a specific process , i mean that
> the acl verification watse alot of cpu , and i think that if i use a
> specific process for acl verification will make a loabd balance of
> squid.conf on my multi process.

ACL do not work that way.

Anyhow, that is all separate from yoru question below.

> here is my config
> :
>
>
> i cant sart squid !!!
>
> WARNING: Could not determine this machines public hostname. Please configure
> one or set 'visible_hostname'.
>
> it get error although i put it under process !
> here is Smp related configs :
> ##################################################
> *if ${process_number} = 4
> visible_hostname squid

a) You are setting the public domain name for this proxy to be "squid"
such that any URL for embeded objects or error page UI information it
generates start with "http://squid/".

This is not a domain name and apparently your system DNS resolver does
not know what to do with it when asked.

> acl blockkeywords dstdomain "/etc/squid/deny.acl"
> http_access deny blockkeywords
> http_port 127.0.0.1:4008

b) Your port is on 127.0.0.1.

c) both of those settings are only for process #4.

Do processes 1 to 3 have anything for either visible_hostname or
http_port or https_port?

> http_access allow localhost manager
> endif
> #######################################################################
> workers 4

A Problem: The number of workers is being configured *after* having used
a "if" directive based on number of workers.

> cpu_affinity_map process_numbers=1,2,3 cores=1,3,5*
> ####################################################################
>
>
> here is squid -k parse output !
<snip>
> 2013/11/01 16:37:29| WARNING: 'squid' rDNS test failed: (0) No error.
> 2013/11/01 16:37:29| WARNING: Could not determine this machines public
> hostname. Please configure one or set 'visible_hostname'.
> why ?!!

Apparently yoru machine is not configured with a hostname, or it is
configured to be "squid" which is not a domain name known to your DNS
resolvers.

Also, this is a WARNING. All Squid which support SMP do not halt on
these. If your Squid is not starting there is another reason.

Amos
Received on Fri Nov 01 2013 - 23:17:33 MDT

This archive was generated by hypermail 2.2.0 : Sat Nov 02 2013 - 12:00:05 MDT