Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4658
  • Last Modified:

squid is stopped FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'

I run squid it show  
squid is stopped
FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname'

Please help
0
teera
Asked:
teera
1 Solution
 
Ravi GoruTechnical ConsultantCommented:

Please set 'visible_hostname' in squid.conf !!

0
 
makhanCommented:
you need to set a name for your machine...

please give the following commands as root and post the output.

hostname

domainname

you can set the hostname in etc/hosts file



0
 
teeraAuthor Commented:
[root@lamaiwanta root]# hostname lamaiwanta
[root@lamaiwanta root]# domain
bash: domain: command not found
[root@lamaiwanta root]#

0
 
marxyCommented:
Edit your squid.conf with

visible_hostname <what_u_want>

where <what_u_want> will be the hostname that's been used by
squid to identify itself

Good practice is to set the hostname of you box
edit /etc/sysconfig/network with
NETWORKING=yes
HOSTNAME=<what_u_want>

For some linux you need to create a file
/etc/HOSTNAME where simply put the name of your host

Edit /etc/hosts and add
<your_ip_addres1>     <what_u_want1>
<your_ip_addres2>     <what_u_want2>

After these changes do
/etc/init.d/network restart

to apply the changes
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now