Re: Squid




Hi guys,
I have a simple question. Does Squid update automatically the cached data in
cases when files were replaced by new files while keeping the names same?
Thanks


Karl Larsen wrote:

David Duong wrote:
Karl Larsen wrote:

I am having trouble setting up squid. It seems to dislike all I have
done and does this:

File host.conf saved
root@karl-desktop:/etc# squid -z
/etc/host.conf: line 2: bad command `127.0.0.1 localhost'
FATAL: Could not determine fully qualified hostname. Please set
'visible_hostname'

Squid Cache (Version 2.6.STABLE14): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted (core dumped)
root@karl-desktop:/etc#

I can't find a visible_hostname anywhere.

karl



Hello Karl,

I believe instead of having "localhost" as your hostname, it must have a
visible hostname (hence the error). So try this:

type hostname and see what's your hostname. If you know your hostname
by heart..good. Also, if you have set your server with an internal
static ip address, remember that too.

Then in the /etc/host.conf, replace the "127.0.0.1" with the actual ip
address of that server and replace "localhost" with your server name.

Correct me if I'm wrong :)


Yes the hostname is queer. It is:
karl@karl-desktop:~$ hostname
karl-desktop

So I can change that to k5di.com which I used on Red Hat and it
worked fine. Will try that.

Karl


--

Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
PGP 4208 4D6E 595F 22B9 FF1C ECB6 4A3C 2C54 FE23 53A7


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
View this message in context: http://www.nabble.com/Squid-tp15391044p21556964.html
Sent from the ubuntu-users mailing list archive at Nabble.com.


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: (was Re: setting FQDN in /etc/hosts)
    ... There should be a space before the word localhost, ... the hostname command will tell you what ... 503 Leafnode must have a unique fully-qualified domain name. ... ## This is the NNTP server leafnode fetches its news from. ...
    (news.software.readers)
  • Re: DBIx::DBH - Perl extension for simplifying database connections
    ... host that it would not connect using the host name and end up using TCP on ... The server name is ... important because I use the localhost name to match up with that, ... matches then don't add in the hostname to the connect string. ...
    (perl.dbi.users)
  • Re: Help w/ Not-booting Problem
    ... >No - setting the hostname is one element in the boot process. ... I have had a working system of RedHat Linux 7.2 for several months. ... >external DNS server on an adsl router! ... >You appear to have a networking problem. ...
    (comp.os.linux.misc)
  • Re: SMTP server for mass email
    ... server being blacklisted. ... listed in RHS blacklists. ... 'MX record for domain pointing to hostname + A record for hostname ... There's a common problem when outbound gateways behind the same ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: DNS lookup delays
    ... > 127.0.0.1 localhost.localdomain localhost luminiferous luminiferous.aethernet ... You want to set your hostname, so the machine isn't trying to work it ... That sounds awfully like it's not using its own hosts file to work out ... >> to resolve them locally (via the hosts file, or your own DNS server). ...
    (linux.redhat.install)