Subject: [GitHub] Don't override ARES_OPT_DOMAINS with the values in resolv.conf [bagder/c-ares GH-5] (fwd)

[GitHub] Don't override ARES_OPT_DOMAINS with the values in resolv.conf [bagder/c-ares GH-5] (fwd)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Apr 2011 19:46:06 +0200 (CEST)

FYI

-- 
  / daniel.haxx.se
---------- Forwarded message ----------
Date: Mon, 4 Apr 2011 16:50:41
From: davidsansome
     <reply+i-730788-0782dc8ef4491a662d3b636daeee130178d5c677_at_reply.github.com>
To: daniel_at_haxx.se
Subject: [GitHub] Don't override ARES_OPT_DOMAINS with the values in resolv.conf
      [bagder/c-ares GH-5]
I noticed that since commit 125b1a8619eb27556e093fd9c9adf451e896f012, "domains" and "search" lines in resolv.conf are overriding search domains set by the ARES_OPT_DOMAINS option.
This patch fixes init_by_resolv_conf to get the old behaviour back where ARES_OPT_DOMAINS options take priority, but still makes the last "domain" or "search" resolv.conf entry take priority over the first if the user didn't pass in any ARES_OPT_DOMAINS.
-- 
Reply to this email directly or view it on GitHub:
https://github.com/bagder/c-ares/pull/5
Received on 2011-04-04