Tim:
>> Previously, yours was:
>>
>> hosts:  files mdns4_minimal [NOTFOUND=return] dns myhostname
>>
>> Which first tries the hosts file, then mdns, then aborts if nothing
>> found (I believe, going by the comments in the rest of the file).  The

Sam Varshavchik:
> My read of nsswitch.conf's man page is that [NOTFOUND=return] applies to the  
> previous resolver's query's results only.

The /etc/nsswitch.conf file suggests otherwise, it's far from clear:

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files

The "obey only" suggests files will not be consulted.  The behaviour of
Joe's computer seems to indicate that kind of thing, too.

Looking in the nsswitch.conf man file, I see:

The ACTION value can be one of:

return      Return a result now.  Do not call  any  further  lookup
            functions.  However, for compatibility reasons, if this
            is the selected action for the group database  and  the
            notfound  status,  and  the configuration file does not
            contain the initgroups line, the next  lookup  function
            is always called, without affecting the search result.

continue    Call the next lookup function.

The "return" action has conflicting information (do not all any further
lookup functions / the next lookup function is always called), with
some kind of exemption for "groups" lookup noted, but not other kinds.

Putting "continue" in your configuration seems the more appropriate
options, which I would have expected to be the default action, anyway
(walk down the line of sources of data until you find an answer).

As I said, things are far from clear.

-- 
 
uname -rsvp
Linux 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to