mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: gethostbyname and resolv.conf
Date: Wed, 30 Apr 2014 12:12:19 -0400	[thread overview]
Message-ID: <20140430161219.GK26358@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAGDMk9HrMyoE-4r1QUQ046pEqn_ndXVFv=46-=VSDUiK2UqhZA@mail.gmail.com>

On Wed, Apr 30, 2014 at 12:02:17PM -0400, John Mudd wrote:
> FYI: Looks like the musl gethostbyname() doesn't use the "search" command
> in the resolv.conf file.

Indeed, search is not implemented. It's on the roadmap for the
resolver overhaul, which is the next task and should be done sometime
next month.

One matter that could use discussion is how search should be
performed. The queries could be done in parallel, or in series once
the previous one fails. In any case the operation cannot complete
until there is an initial subsequence of the search list beginning
with zero or more negative results followed by a positive result; a
positive result with unanswered queries before it is non-conclusive.

Also a question is how search should interact with hosts file. If a
non-initial search suffix succeeds in the hosts file, should DNS
queries still be performed to check if the earlier search suffixes are
found via DNS?

These kinds of questions are why it's not implemented yet, and they
need to be discussed now I think if we're going to get it implemented
soon.

Rich


      reply	other threads:[~2014-04-30 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30 16:02 John Mudd
2014-04-30 16:12 ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140430161219.GK26358@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).