public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: DJ Delorie <dj@redhat.com>
Cc: "Carlos O'Donell" <carlos@redhat.com>,  libc-alpha@sourceware.org
Subject: Re: [PATCH] nss: Use "files dns" as the default for the hosts database (bug 28700)
Date: Fri, 17 Dec 2021 12:41:59 +0100	[thread overview]
Message-ID: <871r2bo3ug.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <xntuf98rfo.fsf@greed.delorie.com> (DJ Delorie's message of "Wed,  15 Dec 2021 16:54:35 -0500")

* DJ Delorie:

> I wonder if it would make sense to have a built-in "localhost" module
> for nss, so we could use "localhost dns [[!UNAVAIL=return] files" as the
> internal default *just* to solve the localhost problem?  Or call it
> "internaldb" so its purpose is obvious?
>
> That would guarantee that if we have to resort to defaults, we resort to
> defaults that work.
>
> Anything that manages nsswitch would provide something to resolve
> localhost externally too, as usual.

The tricky aspect here is the exact meaning of localhost on dual-host
systems.  I'm not sure how much variance there is in practice, though.

Thanks,
Florian


      reply	other threads:[~2021-12-17 11:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 18:33 Florian Weimer
2021-12-15 21:45 ` Carlos O'Donell
2021-12-15 21:54   ` DJ Delorie
2021-12-17 11:41     ` Florian Weimer [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=871r2bo3ug.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=carlos@redhat.com \
    --cc=dj@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).