Re: [squid-users] Squid fails to append domains from resolv.conf

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 20 Jul 2013 00:48:24 +1200

On 20/07/2013 12:08 a.m., Andrew Hall wrote:
> When non-FQDN names are specified by clients I wish for them to be
> appended by the domains in the search directive of resolv.conf on the
> Squid host.
>
> I can see that it is adding these domains at startup by the following
> entries in squid.out...
>
> 2013/07/19 13:02:22| Adding domain sub01.domain.com. from /etc/resolv.conf
> 2013/07/19 13:02:22| Adding domain sub02.domain.com. from /etc/resolv.conf
> 2013/07/19 13:02:22| Adding domain sub03.domain.com. from /etc/resolv.conf
>
> ...but none of them are being appended to non-FQDN addresses. Squid
> just returns an error that it was unable to resolve the hostname.
>
> I can of course use the append_domain directive but this is only for a
> single domain - I cannot specify multiple domains with this method.
>
> Can anyone explain why the domains from resolv.conf are not being used ?

Add this to your squid.conf:
   dns_defnames on

Amos
Received on Fri Jul 19 2013 - 12:48:34 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 19 2013 - 12:00:24 MDT