Ubuntu and name resolving: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
Line 13: Line 13:
==Get the status of resloved==
==Get the status of resloved==
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
resolvectl status
systemd-resolve --status
</syntaxhighlight>
</syntaxhighlight>


== Add your favorite dns server==
== Add your favorite dns server==

Revision as of 11:48, 13 January 2022

Ubuntu 20.04

AEG - Restart resloved

sudo systemctl restart systemd-resolved


Get the status of resloved

systemd-resolve --status

Add your favorite dns server

sudo resolvectl dns <interface> <dns ip address>

e.g.:

sudo resolvectl dns  enp0s31f6  192.168.23.1