While I can connect to mobile broadband with Ubuntu 22.04 and I can transmit packets (ping 8.8.8.8
works fine), DNS resolution doesn't work. The result is that I can't use the internet connection.
This is the output of nslookup google.de
:
;; connection timed out; no servers could be reached
I've tried fiddeling with the settings in /etc/systemd/resolved.conf
as suggested here. Setting a fallback DNS server doesn't work at all. Overriding the DNS server does (once I restart systemd-resolved). The problem is that I can't set a fixed DNS server, as I use VPNs extensively and I need to use a DNS server for name resolution within the VPN. The DNS server is set via network-manager, so I don't want to hardcode it.
The content of /etc/resolv.conf
is:
nameserver 127.0.0.53
options edns0 trust-ad
search .
Does anyone have any idea how to fix this? The Q&A I've referenced above is pretty old and I'd image the bug in the packet that is discussed there has been fixed since then.