I've got Fedora 38 KDE Spin.
To access corporate VPN resources in .local zone I need to make queries to the DNS server after establishing connection.
Default nsswitch.conf hosts section looks like this:
hosts: files myhostname resolve [!UNAVAIL=return] dns
If I modify it this way:
hosts: files myhostname resolve dns [!UNAVAIL=return]
Everything works as I expect. The problem is I can't make these changes persistent. Text in the file banner says:
# Generated by authselect
# Do not modify this file manually, use authselect instead. Any user changes will be overwritten.
# You can stop authselect from managing your configuration by calling 'authselect opt-out'.
# See authselect(8) for more details.
Not much info unfortunately. I've found a manual for the authselect tool in RedHat documentation, but it seem to be inapplicable for Fedora.
Here is what is sais:
Select an authselect profile, for example:
# authselect select sssd
Edit the /etc/authselect/user-nsswitch.conf file with your desired changes.
Apply the changes from the /etc/authselect/user-nsswitch.conf file:
# authselect apply-changes
I don't have */etc/authselect/user-nsswitch.conf* file in my system.
If I make one I don't know what content should it have. I tried
cat /etc/authselect/user-nsswitch.conf
hosts: files myhostname mdns4_minimal [NOTFOUND=return] resolve dns [!UNAVAIL=return]
and then run
sudo authselect apply-changes
as said in the manual, no luck.
Can't find anything to solve this issue.
I would be very grateful to any help.
Thanks!
Asked by PocketSam
(113 rep)
Oct 2, 2023, 10:41 AM
Last activity: Mar 5, 2025, 05:24 PM
Last activity: Mar 5, 2025, 05:24 PM