IMPORTANT INFO IN UPDATE 2
Hello everyone,
After doing a -Syu
and reboot, I no longer have access to the internet system-wide. I can connect to the Wi-Fi but KDE shows a limited connectivity error.
Some observations:
- I can
ping 8.8.8.8
but notping google.com
(same results with other IPs and domains). - I can
ping 192.168.1.1
, my default gateway. - The issue persists with different networks, so it’s not related to a specific network or router.
- My
/etc/resolv.conf
is generated by NetworkManager and is a regular file (not symlinked). So I assume NetworkManager is my DNS resolver. - Both
/etc/resolv.conf
andnmcli
are pointing correctly to the DNS that I have set up (Adguard94.140.14.14
).
In general, it seems that the issue is DNS-related.
What I have tried so far:
-
Changing my current DNS to another public DNS (e.g. Cloudfare, Google, etc.) through KDE’s network settings.
did not work
-
Deleting my
/etc/resolv.conf
and restarting NetworkManager.service to regenerate the file.
did not work
-
Making systemd-resolved my DNS resolver by deleting my
/etc/resolv.conf
and symlinkingln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
and restarting systemd-resolved.service.
this worked! but… after I connect to any VPNs through any protocols succesfully, I no longer have access to the internet (e.g. can’t ping google). I also have to restart systemd-resolved after every boot. So this is not a good solution.
Network/DNS info:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 70:8b:cd:92:ee:cb brd ff:ff:ff:ff:ff:ff
altname enx708bcd92eecb
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:00:72:00:65:00 brd ff:ff:ff:ff:ff:ff permaddr 54:8c:a0:0f:49:4f
inet 192.168.1.134/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 85720sec preferred_lft 85720sec
nmcli device show | grep DNS
IP4.DNS[1]: 94.140.14.14
IP4.DNS[2]: 94.140.15.15
Output of /etc/resolv.conf
# Generated by NetworkManager
nameserver 94.140.14.14
nameserver 94.140.15.15
resolvectl status
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Current DNS Server: 94.140.14.14
DNS Servers: 94.140.14.14 94.140.15.15
Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2620:fe::9#dns.quad9.net
2001:4860:4860::8888#dns.google
Link 2 (enp2s0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
Default Route: no
Link 3 (wlan0)
Current Scopes: none
Protocols: +DefaultRoute +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 94.140.14.14 94.140.15.15
Default Route: yes
General info:
- Output for
inxi -Fxxc0z
: inxi link - Output for
journalctl -k -b
: journalctl link - NetworkManager version 1.52.0-1
- systemd version 257.4-1
NOTE: Everything works fine when I revert the update with a snapshot. The issue only happens after system update.
Please feel free to ask If more info is needed.
Thank you in advance for your help!
UPDATE:
I disabled/stopped systemd-resolved.service and symlinked ln -s /run/NetworkManager/resolv.conf /etc/resolv.conf
and restarted NetworkManager. Now I have access to the internet, but I still have the same VPN issue. Also I’m not sure if disabling systemd-resolved is a good idea…
UPDATE 2:
I JUST FOUND OUT SOMETHING! When I boot up my system (and have no internet access), I just need to restart systemd-resolved to connect to the internet. No need to tinker with any file or NetworkManager. Still can’t ping anything with VPN though.
The Problem is now narrowed down to this:
- Why do I have to manually restart systemd-resolved after booting up in order to access the internet?
- How do I fix the issue with my VPN connecting but not working? (this issue is most likely related to my system settings not the VPN itself)
- Why has this happened after updating my system?