Hi again,
I tried 2 of the ideas you gave me, but none worked well (probably my fault :))
Let me tell you what happened.
I compiled squid with the --disable-internal-dns option. The first thing I
noticed was that it started to ignore the "dns_nameservers" option in
/etc/squid.conf. To fix it I just changed my name server in /etc/resolv.conf to
127.0.0.1. Still, squid only sends requests to hosts 1 to 31, ignoring hosts 32
to 50. I ended this try here.
Using the /etc/hosts file I wasn't able to send requests to many hosts using one
single name. Squid only sends the requests to the first host in the list.
In this test I used the same type of configuration I use in the dns files, to
clarify let me give you an example:
/etc/hosts:
192.168.0.1 cluster.exemple.com <-- Only the first gets the requests
192.168.0.2 cluster.exemple.com
192.168.0.3 cluster.exemple.com
192.168.0.4 cluster.exemple.com
And so on...
Is it what you meant?
Anyway, let me do some ASCII "art" :) to make things clear
The Web
|
|
\|/
'
my.domain.com
_________( Squid Host )_________
| squid.conf: |
|dns_nameservers 127.0.0.1 |
| |
| Redirector: |
|my.domain.com -> cluster.my_lan |
| |
| Bind (127.0.0.1): |
| cluster.my_lan |
| ____________|____________ |
| / | | | | | | | | \ |
| A B C D E F G H ... XX |
| |
| /etc/hosts: |
|192.168.0.1 cluster.my_lan |
|192.168.0.2 cluster.my_lan |
|192.168.0.3 cluster.my_lan |
|192.168.0.4 cluster.my_lan |
|192.168.0.5 cluster.my_lan |
|192.168.0.6 cluster.my_lan |
| . |
| . |
| . |
|192.168.0.nn cluster.my_lan |
| |
|________________________________|
|
|
\|/
'
(192.168.0.X my_lan)
_____________________________________
| WEB CLUSTER |
| Serv A | Serv B | Serv C | Serv D |
| Serv E | Serv F | Serv G | Serv H |
| Serv ..................... Serv XX |
|_____________________________________|
- Without "--disable-internal-dns" configure option
If Serv XX represents less than 30 servers, squid works well, else we get an
error
- With "--disable-internal-dns" configure option
If Serv XX represents more than 32 servers, squid ignores 33, 34, 35...
- Without Bind9 server using only /etc/hosts
No matter what I do, squid only redirects the requests to the first hosts in the
hosts file that matches cluster.my_lan)
Am I missing something here?
Thanx again!!
On Tue, Sep 28, 2004 at 08:23:22AM +0200, Henrik Nordstrom wrote:
> On Mon, 27 Sep 2004, Luiz Chopin C. Oliveira wrote:
>
> >This works perfectly if we configure Bind to translate "cluster.my_lan"
> >for a
> >number of servers that is less than or equal 29. Anything greater than that
> >squid replies with:
> >
> >"No DNS records"
>
> Try compiling Squid with --disable-internal-dns, or place the hosts into
> /etc/hosts instead of DNS.
>
> But I would recommend redoing the setup to use cache_peer for forwarding
> the requests instead of a redirector rewriting the URLs.
>
> Regards
> Henrik
-- Luiz Chopin Cruz de Oliveira Analista de Suporte - luizcab@akwan.com.br Akwan Information Technologies, http://www.akwan.com.br GNU/Linux - Excelencia em Servidores As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously. A medida que aproveitamos os benefícios das invenções de outros, devemos estar felizes com a oportunidade de servir a outros com uma invenção nossa; e isso nós devemos fazer gratúita e generosamente. Benjamin FranklinReceived on Tue Sep 28 2004 - 12:10:19 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:03 MDT