Archive Index This month's Index

Subject: Re: domain vs. search

Re: domain vs. search

From: Yang Tse <>
Date: Mon, 31 May 2010 15:52:53 +0200

2010/5/31, Jakub Hrozek wrote:

> I noticed that if "domain" directive is given in /etc/resolv.conf,
> "search" directives are not taken into account b/c the code assigns them
> only if channel->ndomains == -1 (uninitialized).
> I think this is a bug and c-ares should append both lists into
> channel->domains. Is that correct? If so, I'd like to contribute a patch
> before the next version goes out.


> The domain and search keywords are mutually exclusive. If more than one
> instance of these keywords is present, the last instance will override.

> The search keyword of a system's resolv.conf or resolv.conf.tail file can
> be overridden on a per-process basis by setting the environment variable
> LOCALDOMAIN to a space-separated list of search domains.

Received on 2010-05-31