Re: [PATCH 3/4] systemd: add myhostname to nsswitch.conf

Dan McGregor
2015-12-10T18:33:46Z

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

On 7 Dec 2015 1:49 p.m., "Christopher Larson" <kergoth@gmail.com> wrote:
>
>
> On Tue, Nov 17, 2015 at 8:49 PM, Dan McGregor <danismostlikely@gmail.com>
wrote:
>>
>> On 12 Nov 2015 5:41 p.m., "Christopher Larson" <kergoth@gmail.com> wrote:
>> >
>> > From: Christopher Larson <chris_larson@mentor.com>
>> >
>> > We don't need nss-myhostname on systemd systems, because systemd
already
>> > provides myhostname, but we weren't configuring nsswitch to use it.
Being able
>> > to resolve the hostname is useful for a number of different
applications, so
>> > enable it using the same postinst/prerm bits which are in
nss-myhostname.
>>
>> I have this and a similar change for resolved in an append at work.
Would others be interested in that too?
>
>
> I'm sure there are folks that would find that interesting. I'm sure not
everyone uses resolved, but I'm sure we want it to work well for folks taht
do want to use it.
>

Cool. I'll post my change. nss_resolve can be used unconditionally if it's
there. If resolved isn't running it falls back to nss_dns.

[-- Attachment #2: Type: text/html, Size: 1538 bytes --]