RE: [squid-users] DNS question - running squid2.5Stable2

From: Zand, Nooshin <nooshin.zand@dont-contact.us>
Date: Mon, 7 Jul 2003 11:58:06 -0700

I had tested host_file directive; it seems it is not working.
I checked also /etc/nsswitch.conf file for hosts and it refers to file as well.
Any idea why?
Do I have to enable any functionality during compilation in order to get it work?

Thanks,
Nooshin

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@squid-cache.org]
Sent: Thursday, July 03, 2003 11:30 PM
To: Zand, Nooshin; squid-users@squid-cache.org
Subject: Re: [squid-users] DNS question - running squid2.5Stable2

On Thursday 03 July 2003 23.14, Zand, Nooshin wrote:
> Hi,
> 1)
> It seems even though the first DNS entry in /etc/resolv.conf is not
> answering to dns query squid still tries to send the query to it.
> (based on tcpdump data) This causes slowness in web access.
> How can I enforce squid to not send dns query for a some period of
> time to defected DNS server?

Some programming may be required for this.

> 2)
> In squid2.4 I had to disable internal_dns and run dnsserver in
> order to check /etc/host file. It "seems" squid2.5 behaves the
> same. Please advise!

Squid-2.5 reads /etc/hosts or another hosts type file of your choice.
See the hosts_file directive in squid.conf.

Note: the hosts file is only read on startup or reconfigure.

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Mon Jul 07 2003 - 13:20:05 MDT

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