RE: [squid-users] SQUID and DNS problem (fwd)

From: Mehdi Melhaa <Mehdi.Melhaa@dont-contact.us>
Date: Mon, 13 Aug 2001 12:00:37 +0200

Hello Adrian,

My squid version is Squid/2.4.STABLE1 .
Is this version can resolve /etc/hosts ?

Thanks,

Mehdi

-----Message d'origine-----
De : Adrian Chadd [mailto:adrian@squid-cache.org]
Envoyé : lun. 13 août 2001 11:52
À : Mehdi Melhaa
Cc : squid-users@squid-cache.org
Objet : Re: [squid-users] SQUID and DNS problem (fwd)

On Mon, Aug 13, 2001, Mehdi Melhaa wrote:
> Neil,
>
> Thank you for your help, but it doesn't work any more.
> I can't configure squid to resolve address with /etc/hosts.
>
> I don't understand.
> Thanks in advance.

Which version of squid are you running?
Only recent versions will resolve out of /etc/hosts .

adrian

>
> Regards,
>
> Mehdi
>
>
> Mehdi,
>
> > Sorry to disturb you but I think you can't
> > save me :)
> >=20
> > I have the same problem than Fabio.
> > I would like to resolve address with /etc/hosts first and=20
> > DNS after. I configure my /etc/nsswitch.conf
> >=20
> > This is the extract of nsswitch.conf :
> >=20
> > hosts: files nisplus nis dns
> >=20
> > I restart squid.
> > But it doesn't work , squid resolve address with DNS first.
> > I don't know why.=20
> >=20
> > My squid version is Squid/2.4.STABLE1 .
> Shouldn't you run ./configure with --disable-internal-dns to enable the
> old dnsserver processes ???
>
>
> =09=09=09=09Neil.
>
> > -----Message d'origine-----
> > De : F=E1bio S. Torres [mailto:fast.net@ig.com.br]
> > Envoy=E9 : ven. 10 ao=FBt 2001 04:33
> > =C0 : Peter Cheney
> > Cc : Squid List
> > Objet : Re: [squid-users] SQUID and DNS problem (fwd)
> >=20
> >=20
> > Thank you Peter,
> >=20
> > I'll try this asap !!!
> >=20
> > I hope it helps me so !!!!
> >=20
> >=20
> > ----- Original Message -----
> > From: Peter Cheney <pcheney@thiess.com.au>
> > To: F=E1bio S. Torres <fast.net@ig.com.br>
> > Sent: Thursday, August 09, 2001 10:53 PM
> > Subject: Re: [squid-users] SQUID and DNS problem (fwd)
> >=20
> >=20
> > > Fabio,
> > >
> > > Here is reply I sent you some days ago to your other address but it
> > bounced.
> > >
> > > HTH
> > > Peter
> > >
> > > --
> > > Peter Cheney P: +61 (7) 3002 9814
> > > System Administrator F: +61 (7) 3002 9829
> > > Thiess Pty Ltd M: +61 (4) 0818 6290
> > > 'We are not human beings having a spiritual experience. We are
spiritua=
> l
> > beings having a human experience.'
> > >
> > > ---------- Forwarded message ----------
> > > Date: Wed, 8 Aug 2001 12:37:43 +1000 (EST)
> > > From: Peter Cheney <pcheney@thiess.com.au>
> > > To: "[iso-8859-1] F=E1bio S. Torres" <ftorres@centralink.cjb.net>
> > > Subject: Re: [squid-users] SQUID and DNS problem
> > >
> > > Hi,
> > >
> > > Your /etc/resolv.conf file should look something like this....
> > >
> > > domain company.com
> > > nameserver 10.1.3.1
> > > nameserver 10.1.3.2
> > > nameserver 10.1.3.3
> > > search company.com
> > >
> > > Where: company.com is your registered domain name that the squid proxy
> > server is connected to (eg proxy.company.com) and the 10.1.3.1,
10.1.3.2,
> > 10.1.3.3 are the primary, secondary, and ternary nameservers for your
> > domain.
> > >
> > > If you aren't using DNS then you will likely need to add an antry into
> > /etc/hosts so that the proxy can resolve the name into an address.
> > >
> > > /etc/nsswitch.conf is another file that helps determin the order in
whi=
> ch
> > things are searched, eg look in /etc/hosts first, then DNS, then NIS etc
> > etc. You may need to alter this file to acheive the correct result
depend=
> ing
> > how you decide to resolve names.
> > >
> > > HTH
> > > Peter
> > >
> > > |Date: Tue, 07 Aug 2001 23:23:39 -0300
> > > |From: "[iso-8859-1] F=E1bio S. Torres" <fast.net@ig.com.br>
> > > |Reply-To: "[iso-8859-1] F=E1bio S. Torres"
<ftorres@centralink.cjb.net=
> >
> > > |To: Squid List <squid-users@squid-cache.org>
> > > |Subject: [squid-users] SQUID and DNS problem
> > > |
> > > |I'm trying to configurate SQUID, but I'm receiving a message tha it
co=
> uld
> > not resolv the address name
> > > |I tried to edit /etc/resolv.conf but it didn't get good result
> > > |
> > > |Some body can help me...???
> > > |
> > > |Thanks
> > > |
> > > |
> > > | Fabio...
> > > |
> > >
> > > --
> > > Peter Cheney P: +61 (7) 3002 9814
> > > System Administrator F: +61 (7) 3002 9829
> > > Thiess Pty Ltd M: +61 (4) 0818 6290
> > > 'We are not human beings having a spiritual experience. We are
spiritua=
> l
> > beings having a human experience.'
> > >
> > >
> > > ******************
> > > IMPORTANT - This email and any attachments may be confidential and
> > privileged. If received in error, please contact Thiess and delete all
> > copies. You may not rely on advice and documents received by email
unless
> > confirmed by a signed Thiess letter. Before opening or using
attachments,
> > check them for viruses and defects. Thiess' liability is limited to
> > resupplying any affected attachments.
> > > ******************
> >=20
>
> --=20
> Neil Hillard hillardn@whl.co.uk
> Westland Helicopters Ltd. http://www.whl.co.uk/
>
> Disclaimer: This message does not necessarily reflect the
> views of Westland Helicopters Ltd.
Received on Mon Aug 13 2001 - 04:00:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:36 MST