Ubuntu and name resolving: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
= Ubuntu 20.04= | = systemd-resolved and Ubuntu 20.04= | ||
General Info: | General Info: | ||
Revision as of 12:43, 13 January 2022
systemd-resolved and Ubuntu 20.04
General Info:
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