From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12650 Path: news.gmane.org!.POSTED!not-for-mail From: Quentin Rameau Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] resolv.conf parser: concatenate multiple search domain lines Date: Fri, 30 Mar 2018 14:27:42 +0200 Message-ID: <20180330142742.04e8fc3f@fifth.space> References: <20180330105159.19583-1-nenolod@dereferenced.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522412795 3136 195.159.176.226 (30 Mar 2018 12:26:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2018 12:26:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12664-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 30 14:26:31 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f1t6z-0000fn-Vw for gllmg-musl@m.gmane.org; Fri, 30 Mar 2018 14:26:30 +0200 Original-Received: (qmail 19996 invoked by uid 550); 30 Mar 2018 12:28:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19958 invoked from network); 30 Mar 2018 12:28:32 -0000 In-Reply-To: <20180330105159.19583-1-nenolod@dereferenced.org> Xref: news.gmane.org gmane.linux.lib.musl.general:12650 Archived-At: Hi William, > Programs such as Docker and Kubernetes write multiple domain search > lines, such as >=20 > search serious-business.big-data.prod.foo.com > search big-data.prod.foo.com > search prod.foo.com >=20 > instead of >=20 > search serious-business.big-data.prod.foo.com big-data.prod.foo.com > prod.foo.com >=20 > Accordingly, we concatenate the namelist together so that the search > path is not truncated. I think this patch should be sent to Docker and Kubernetes instead of pushing a mitigation for their bug in the libc. According to documentation, =E2=80=9CThe domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance wins.=E2=80=9D This patch would break existing applications relying on documented behaviour. - Quentin