Ubuntu and name resolving: Difference between revisions
Jump to navigation
Jump to search
(Created page with " =AEG - Restart resloved= <syntaxhighlight lang="sh"> sudo systemctl restart systemd-resolved </syntaxhighlight>") |
|||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
=AEG - Restart resloved= | = 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== | |||
<syntaxhighlight lang="sh"> | <syntaxhighlight lang="sh"> | ||
sudo systemctl restart systemd-resolved | sudo systemctl restart systemd-resolved | ||
</syntaxhighlight> | |||
==Get the status of resloved== | |||
<syntaxhighlight lang="sh"> | |||
systemd-resolve --status | |||
</syntaxhighlight> | |||
== Add your favorite dns server== | |||
<syntaxhighlight lang="sh"> | |||
sudo systemd-resolve --interface <interface> --set-dns <dns ip address> | |||
or | |||
sudo resolvectl dns <interface> <dns ip address> | |||
</syntaxhighlight> | |||
e.g.: | |||
<syntaxhighlight lang="sh"> | |||
sudo systemd-resolve --interface enp0s31f6 --set-dns 192.168.23.1 | |||
or | |||
sudo resolvectl dns enp0s31f6 192.168.23.1 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
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