Problem
After a fresh installation of kubuntu 22.04 LTS, DNS does not work any longer after a reboot (or shotdown and start).
Solution
Most robust
Edit (possibly create) a file within /etc/systemd/network/
. It might be called like 10-dhcp.network
, however, it should contain:
[Match] # Naming scheme: en* -> ethernet, wlan* -> wlan Name=* [Network] DHCP=yes
If you want, you can create for each technology one file. Then you need to restart your network by:
sudo systemctl restart systemd-networkd
Less robust because of static
Make sure that in/etc/systemd/resolved.confthe is an uncommented line
DNS=192.168.2.1 208.67.222.222 208.67.220.220 192.168.1.1where the ip addresses are the ones of the DNS servers you want to use.
Alternatively
You can configure the DNS servers in each of your network configuration with the network manager of your system or your choice.Holzhammermethode
sudo ln -sf "/run/systemd/resolve/stub-resolv.conf" "/etc/resolv.conf"
No comments:
Post a Comment