Ubuntu and name resolving
Jump to navigation
Jump to search
systemd-resolved and Ubuntu 20.04
General Info:
- https://wiki.ubuntuusers.de/systemd/systemd-resolved/
- https://wiki.archlinux.org/title/Systemd-resolved
configuration of resolved
Config your favorite settings in the following file: /etc/systemd/resolved.conf
AEG - Restart resloved
sudo systemctl restart systemd-resolved
Get the status of resloved
systemd-resolve --status
Add your favorite dns server
sudo systemd-resolve --interface <interface> --set-dns <dns ip address>
or
sudo resolvectl dns <interface> <dns ip address>
e.g.:
sudo systemd-resolve --interface enp0s31f6 --set-dns 192.168.23.1
or
sudo resolvectl dns enp0s31f6 192.168.23.1