Ubuntu and name resolving: Difference between revisions
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
= Ubuntu 20.04= | = Ubuntu 20.04= | ||
General Info: | |||
* https://wiki.ubuntuusers.de/systemd/systemd-resolved/ | * https://wiki.ubuntuusers.de/systemd/systemd-resolved/ | ||
== configuration of resolved == | |||
Config your favorite settings in the following file: | |||
/etc/systemd/resolved.conf | |||
==AEG - Restart resloved== | ==AEG - Restart resloved== | ||
Revision as of 12:43, 13 January 2022
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