[Pkg-utopia-maintainers] Bug#392813: looking at this bug..

Lennart Poettering mzqrovna at 0pointer.de
Sat Oct 14 20:10:15 UTC 2006


On Sat, 14.10.06 15:59, Joey Hess (joeyh at debian.org) wrote:

Seems my last mail crossed yours on the way.

> Part of the problem is that your /etc/resolv.conf has "search local".
> This means that every dns lookup is first tried in the "local" domain,
> so it's trying to look up google.com.local.
> 
> If I configure my system the same, with "search local" and avahi disabled,
> I can get similar results:
> 
> Could nss-mdns be changed to check for a resolv.conf with "search local" and
> somehow avoid all the unnecessary mdns queries for every (!!) dns lookup that
> are entailed? Or maybe it could return immediately for domains like 
> google.com.local while doing its thing for foo.local?

Don't use "search local". It will always produce problems like this one.
> 
> (I'd like to be able to put "search local" in my resolv.conf, for networks
> that don't have any other dns than mdns, so it seems like a legitimate thing
> to want to do.)

As I already wrote in my last email, the "search local" is indeed the
problem.

It is explicitly *not recommended* to use "search local". If people
choose to use it it's their problem.

"search local" has lots of problems. This one is only one of them.

The "search local" functionality is *only* useful in setups where 
traditional DNS is not used *at all*. In all other cases, don't use
it, it causes all kinds of problems and will slow down all lookups. I
am really surprised that so many people actually make use this
configuration option. I never documented it for nss-mdns. Only a minor
entry in my changelog even mentions it.

To stress this once more:

DO NOT USE "search local" UNLESS YOU REALLY KNOW WHAT YOU DO! And if
you do use it, don't file bugs about it. I am fully aware that it is
problematic. 

(Yes, this particular problem is fixable, and I will eventually do so,
but it's low-priority to me)

Lennart

-- 
Lennart Poettering; lennart [at] poettering [dot] net
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/




More information about the Pkg-utopia-maintainers mailing list