Ubuntu and name resolving: Difference between revisions
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
General Info: | General Info: | ||
* https://wiki.ubuntuusers.de/systemd/systemd-resolved/ | * https://wiki.ubuntuusers.de/systemd/systemd-resolved/ | ||
* https://wiki.archlinux.org/title/Systemd-resolved | |||
== configuration of resolved == | == configuration of resolved == | ||
Latest revision as of 13:15, 18 February 2022
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