On 10 Aug 2001 13:03:33 -0600, Adrian Chadd wrote:
> On Fri, Aug 10, 2001, Miklos Magyari wrote:
> > hi squidders,
> >
> > assume I have the following config:
> >
> > /etc/resolv.conf has no 'nameserver' entries.
> >
> > In squid.conf I add:
> >
> > dns_nameservers x.x.x.x y.y.y.y
> > dns_testnames netscape.com
> >
> > in this case I have a failure on dns test and squid exits. If I skip the
> > dns test, later squid can lookup netscape.com.
> > As I understand, first it tests, and on success, it adds the nameservers
> > to the list.
> >
> > Is it a bug or feauture? :)
>
> Unless there's some magic in there, its a bug. :-)
IIRC the magic is that the DNS tests _are not done by the squid dns
configuration_, but get gethostbyname().
Maybe that should be simply removed, and a post-config lookup used
instead to test?
Rob
> > More seriously: is it by design? If yes, how can I workaround this
> > behaviour, if I
> > 1) don't want to add entries to resolv.conf
> > 2) want to test if the ISP's DNS server is ok
> > 3) want squid to resolv the names correctly
>
> Use -D when you start squid. That disables the DNS checks.
>
>
>
> Adrian
>
Received on Sat Aug 11 2001 - 02:38:43 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:34 MST