LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2008, 03:53 AM   #1
pmember01
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Rep: Reputation: 0
squid is not working


i m trying to configuring basic squid but it is giving error
"could not determine fully qualified domain name please set visible_hostname" even i have set the visible hostname in squid.conf file which is the name of of my squid server,
how to solve this problem?
 
Old 01-17-2008, 04:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
clearly you have not set visible_hostname or it wouldn't still be complaining abuot it not being there... please show us the real squid.conf file and the logs.
 
Old 01-17-2008, 06:46 AM   #3
vedang
Member
 
Registered: May 2006
Posts: 89

Rep: Reputation: 15
squid problem.

Please check you have removed the comment of visible_hostname.

And your hostname ( in visible_hostname host ) should match as it is in the /etc/sysconfig/network file and must also be entered in /etc/hosts file also with it's IP address.

It should solve your problem.

Let me know if you get it working.
 
Old 01-17-2008, 06:53 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally Posted by vedang View Post
And your hostname ( in visible_hostname host ) should match as it is in the /etc/sysconfig/network file and must also be entered in /etc/hosts file also with it's IP address.
Someone please correct me if I'm wrong (I don't have access to my Squid box right now to check), but IIRC visible_hostname doesn't need to match anything of that sort - you can make it say whatever you want - and you don't need to put anything for it in /etc/hosts.
 
Old 01-17-2008, 06:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
no, it's just an arbitrary string which deliberately bypasses the need to derive it through those means. there are all sorts of reasons within a real life environment where you may want the hostname to be something totally unrelated, e.g. if the box is sitting behind a tcp load balancer / proxy or something like that.
 
Old 01-18-2008, 12:31 AM   #6
pmember01
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks

Quote:
Originally Posted by acid_kewpie View Post
clearly you have not set visible_hostname or it wouldn't still be complaining abuot it not being there... please show us the real squid.conf file and the logs.
i will check it out and let you know
 
Old 01-18-2008, 12:33 AM   #7
pmember01
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks

Quote:
Originally Posted by vedang View Post
Please check you have removed the comment of visible_hostname.

And your hostname ( in visible_hostname host ) should match as it is in the /etc/sysconfig/network file and must also be entered in /etc/hosts file also with it's IP address.

It should solve your problem.

Let me know if you get it working.

thanks dear i will check it out and let you know if there is still problem
 
Old 01-18-2008, 12:34 AM   #8
pmember01
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks

Quote:
Originally Posted by win32sux View Post
Someone please correct me if I'm wrong (I don't have access to my Squid box right now to check), but IIRC visible_hostname doesn't need to match anything of that sort - you can make it say whatever you want - and you don't need to put anything for it in /etc/hosts.
i will check it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Not working onyangoliech Linux - Networking 5 03-22-2016 07:43 PM
Is this squid working? beepee Linux - Server 4 12-19-2006 12:35 PM
squid not working ssfrstlstnm Linux - Software 4 10-28-2005 08:16 AM
squid not working anjani.78 Linux - Newbie 7 09-30-2005 09:27 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration