LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   squid fully qualified hostname (http://www.linuxquestions.org/questions/linux-software-2/squid-fully-qualified-hostname-228132/)

DutchBoy 09-08-2004 08:34 AM

squid fully qualified hostname
 
I am running RH9 and have my hostname set to SAM. I have it set in my network and hosts and lmhosts as SAM as well. Whenever I try to run squid I get the following error message:

Aborted $SQUID -z -F -D 2>/dev/null

The service configuration status is as follows:

parseConfigFile:line 1967 unrecognized 'SAM'
FATAL:Could not determine fully qualified hostname. Please set 'visible_hostname'

my linux box is running as the PDC for the domain home. I have added .home to the squid.conf file in the visible_hostname section as

SAM.home

the result doesn't change.

I have run the hostname command from the terminal but it only gives me SAM as the result.

If there is another way to get the FQH or get squid to work properly.

orange400 09-08-2004 08:56 PM

not sure if it matters, but try changing SAM to a lowercase sam. check if that works.

angrybeaver 09-08-2004 10:17 PM

do you really need to set the hostname in the config? squid uses whatever the gethostname() function returns by default.

if '/bin/hostname -f' doesn't work properly, you're better off fixing your /etc/hosts file.

what does line 1967 say exactly?


All times are GMT -5. The time now is 06:32 PM.