Re: nsswitch.conf again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eyal,

It might be too long. But maybe you could solve it by fixing
systemd-resolved or disabling it completely. systemd-resolved should
contact DNS as usual, all your aliases should work there unless
overriden in /etc/hosts.

If you do not want to systemd-resolved to interfere, disable it by:

$ (sudo) systemctl disable --now systemd-resolved
$ (sudo) rm /etc/resolv.conf
$ (sudo) ln -s /run/NetworkManager/resolv.conf /etc/resolv.conf

It would not provide split-DNS on VPN, but should always reach dns
module in /etc/nsswitch.conf in default configuration.

If you want to use it and fix it instead, resolvectl output would help
us guess what might be wrong with it.

Cheers,

Petr

On 7/18/21 3:18 AM, Eyal Lebedinsky wrote:
> This was brought up before, but today again it bit me. There was a
> glibc update (fc34)
> which provides a new nsswitch.conf with this line
>     hosts:      files myhostname resolve [!UNAVAIL=return] dns
> which caused all the aliases I had for my server to fail because my
> local dns was not looked up.
>
> Had to again remove the '[!UNAVAIL=return]' stanza.
>
> Is this issue being fixed? I found this
>     https://bugzilla.redhat.com/show_bug.cgi?id=1717384
> which suggests nsswitch.conf will become a fedora file (not glibc) and
> hopefully better, but this log
> has now been open for a long time.
>
> Regards
>
-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik@xxxxxxxxxx
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux