<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.3">
</HEAD>
<BODY>
Opa<BR>
<BR>
Basicamente ele utiliza o visible_hostname para informar o nome da maquina para o squid.<BR>
Esta diretiva só é utilizada quando o squid tenta descobrir o nome completo da mauqina, isto é: maquina.dominio. Se ele não consegue então ele tenta o visible_hostname. Note que se ele não descobrir o nome da maquina e tambem não tiver o visible_hostname, entao ele retorna um erro e não inicializa o squid.<BR>
<BR>
Basicamente, o algoritimo seria, se esta definido visible_hostname utiliza ele, senao, tenta pegar o nome fqdn da maquina, senao, retorna erro.<BR>
<BR>
Claudio Jr.<BR>
<BR>
<BR>
Em Qua, 2006-09-06 às 09:13 -0300, Rafael Gomes escreveu:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Hum, Mas tem alguma razão para ele pedir isso, pois lembro que no Suse ele não pedia..</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">2006/9/6, Alejandro Flores <<A HREF="mailto:alejandrorflores@gmail.com">alejandrorflores@gmail.com</A>>: </FONT><BR>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">Olá,</FONT><BR>
        <BR>
        <FONT COLOR="#000000">> mas ai está dizendo que meu hostname ficará visivel ? isso quer dizer o que?</FONT><BR>
        <FONT COLOR="#000000">> Como funciona isso? Alguem saberia me responder? </FONT><BR>
        <BR>
        <FONT COLOR="#000000">O squid quando inicia, tenta descobrir o nome da máquina. Se ele não</FONT><BR>
        <FONT COLOR="#000000">conseguir determinar o nome da máquina, precisa que você informe, por</FONT><BR>
        <FONT COLOR="#000000">isso que ele pediu pra vc setar a variavel visible_hostname. Ele usa </FONT><BR>
        <FONT COLOR="#000000">essa informação, para, por exemplo, quando numa mensagem de erro do</FONT><BR>
        <FONT COLOR="#000000">squid, ele mostra no roda pé uma mensagem 'squid running on</FONT><BR>
        <FONT COLOR="#000000">NOME_DA_SUA_MAQUINA'.</FONT><BR>
        <FONT COLOR="#000000">Não necessariamente você precisa colocar o nome do seu servidor, você </FONT><BR>
        <FONT COLOR="#000000">pode colocar qualquer valor para visible_hostname, como por exemplo:</FONT><BR>
        <FONT COLOR="#000000">visible_hostname praquevcquersaber</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Abraço!</FONT><BR>
        <FONT COLOR="#000000">Alejandro Flores</FONT><BR>
        <BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> Obrigado,</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> 2006/9/6, André Felício < <A HREF="mailto:andre@felicio.com.br">andre@felicio.com.br</A>>:</FONT><BR>
        <FONT COLOR="#000000">> ></FONT><BR>
        <FONT COLOR="#000000">> Rau,</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> Em Quarta 06 Setembro 2006 00:24, Rafael Gomes escreveu:</FONT><BR>
        <FONT COLOR="#000000">> > Quando inicio o criar o cache com o squid -z ele retorna o seguinte erro: </FONT><BR>
        <FONT COLOR="#000000">> ></FONT><BR>
        <FONT COLOR="#000000">> > FATAL : Could not determine fully qualidied hostname. Please ser</FONT><BR>
        <FONT COLOR="#000000">> > 'visible_hostame'</FONT><BR>
        <FONT COLOR="#000000">> ></FONT><BR>
        <FONT COLOR="#000000">> > Antes que alguem pergunte:</FONT><BR>
        <FONT COLOR="#000000">> ></FONT><BR>
        <FONT COLOR="#000000">> > Eu ja vi o log, so tem isso... </FONT><BR>
        <FONT COLOR="#000000">> > Quando chamo o services squid ele retorna um erro n arquivo de</FONT><BR>
        <FONT COLOR="#000000">> > inicialização, na linha 52 que fala sobre o cache.</FONT><BR>
        <FONT COLOR="#000000">> ></FONT><BR>
        <FONT COLOR="#000000">> > O que seria isso ?</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> Faça o que o squid pede, acrescente seu hostname ao arquivo de conf do </FONT><BR>
        <FONT COLOR="#000000">> squid.</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> # echo visible_hostname `hostname` >> /etc/squid/squid.conf</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> Talvez só isso resolva...</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> Att,</FONT><BR>
        <FONT COLOR="#000000">> André Felício</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> --</FONT><BR>
        <FONT COLOR="#000000">> #define JFFS2_MAGIC_BITMASK 0x1985 </FONT><BR>
        <FONT COLOR="#000000">> #define KSAMTIB_CIGAM_2SFFJ 0x5981 /* For detecting wrong-endian fs */</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">>        - from include/linux/jffs2.h</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> --</FONT><BR>
        <FONT COLOR="#000000">> Rafael Brito Gomes </FONT><BR>
        <FONT COLOR="#000000">> Sistema de Informação</FONT><BR>
        <FONT COLOR="#000000">> Universidade Salvador</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <BR>
        <FONT COLOR="#000000">--</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Alejandro Flores</FONT><BR>
        <FONT COLOR="#000000"><A HREF="http://www.triforsec.com.br/">http://www.triforsec.com.br/</A></FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <FONT COLOR="#000000">-- </FONT><BR>
    <FONT COLOR="#000000">Rafael Brito Gomes </FONT><BR>
    <FONT COLOR="#000000">Sistema de Informação</FONT><BR>
    <FONT COLOR="#000000">Universidade Salvador</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Linux User - 430086</FONT><BR>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<TABLE WIDTH="640">
<TR>
<TD WIDTH="150" VALIGN="top">
<IMG SRC="cid:1157549942.8295.0.camel@localhost" WIDTH="150" ALIGN="bottom" BORDER="0">
</TD>
<TD WIDTH="490" VALIGN="top">
<B>Claudio da Silva Junior</B><BR>
<I>Diretor Técnico/Redes</I><BR>
<I><A HREF="mailto:csjunior@colnet.com.br">csjunior@colnet.com.br</A></I><BR>
Telefones: (+55) 44 32232929 Celular: (+55) 44 84156850
</TD>
</TR>
</TABLE>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>