Francis Montagnac: > > resulting in that for hosts in nsswitch.conf: > > > > grep hosts /etc/authselect/nsswitch.conf > > hosts: files myhostname mdns4_minimal [NOTFOUND=return] resolve > > [!UNAVAIL=return] dns
Eyal: > This is actually the problem, I needed to remove the [!UNAVAIL=return] to > make things work. > I suspect this change is needed because I have some issues with my > dns setup. > > What I have now is: > > #hosts: files myhostname resolve [!UNAVAIL=return] dns > hosts: files myhostname resolve dns Looking at older documentation, because I'm on the wrong computer at the moment: "notfound" means if the lookup succeeded but didn't have an answer, then... "return" means immediately return an answer to the query with this response, whatever it is, don't try any further. Although for *some* query types, it will actually progress down the list of things to query, trying again. "!unavail" means if queried service does respond (the exclamation point before it inverts the response), then... "return" means the same as I'd already described, return with the answer this service provides (which is either an address, or there is no answer for this query). So with the earlier reply to this message, it would see if files had an answer (that'd be /etc/hosts for DNS/hostname queries), then mdns4_minimal, then abort. Which seems a very odd thing to do in the middle of the list of things to query. I'd always removed condtional things like that, ending up with a list like yours, and things worked fine. My list of things to query listed the things that my computer had available to query, without any conditionals in the middle, and without any things that aren't available not listed. The default behaviour is to ask the first thing on the list, and walk down the line until something responds. If nothing responds, you'll get a no-answer response at the end, anyway. -- uname -rsvp Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 (yes, this is the output from uname for this PC when I posted) 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 -- [email protected] To unsubscribe send an email to [email protected] 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/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
