I upgraded from 39 to 40 and have an odd issue. I’m new to linux diagnosis.
dnf upgrade takes 5mins at-least to load/start. However once its pulled the updates they DL at normal speed;
Firefox takes 5mins to start. (Once its started pages load quite quickly)
I discovered the issues are occurring if my VPN Windscribe is activated! My VPN loads and connects on boot. If however I disconnect the VPN then firefox loads instantly as does DNF.
What would be causing this?
I found this post:
“Looks like the default /etc/hosts file is miss-configured changing it to the below fixes the issue 127.0.0.1 localhost 127.0.1.1 hostname(change me to whatever you set your host name to)”
I’m not sure however if this is the issue? Any assistance greatly appreciated!
with VPN: 34.6ms
(I’ve ran this a few times and consistent the VPN is quicker to resolve google.com)
DNS config:
Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (eno1)
Current Scopes: none
Protocols: -DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 3 (wlp0s20f3)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.178.1
DNS Servers: 192.168.178.1
DNS Domain: fritz.box
Link 5 (utun420)
Current Scopes: DNS
Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.255.255.4
DNS Servers: 10.255.255.4
DNS Domain: ~.
WOW - this actually worked!
Originally:
hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] myhostname dns
now:
hosts: files mdns4_minimal [NOTFOUND=return] myhostname dns resolve [!UNAVAIL=return]
Can you please indicate what this change does? I generally don’t like making changes like this without knowing how it impacts the system, security, etc?
Both DNS and Firefox start instantly!
I’m not sure what to do here? Are these commands to be run? I only noticed this edit after making the above changes.
EDIT:
Ran those commands:
time getent hosts $(hostnamectl hostname)
eal 0m0.102s
user 0m0.003s
sys 0m0.008s
and
grep -e ^hosts: /etc/nsswitch.conf
hosts: files mdns4_minimal [NOTFOUND=return] myhostname dns resolve [!UNAVAIL=return]
If @spaghettiwestern manually edited the nsswitch.conf file, will it be over-written on reboots. Top of the file says there is risk it’ll be overwritten if manually changed?
thank you for the discussion here. I also experienced extremely slow startup of firefox after installing f40. I always use VPN and I did not have this issue in f39 and before. the fixes as described by vgaetera (both the temporary and the persistent one) solve the issue for me
I manually edited the .conf and at the time noticed it saud the changes may not persist. So far, they have not been overwritten. If it occurs and the issue persist ill run the persistent commands discussed.
This change, interestingly, has sped up DNF over my other machines which do not use a VPN or ever had the issue discussed.
I’m still on fedora 39 and was having the same issue reported here, so maybe this is not related to the problem, or just made a preexisting problem even worse.