Donnerstag, 4. Mai 2023

Ubuntu 22 DNS with resolvconf

 in case you need to modify the DNS of UBUNTU 22


vi /etc/resolvconf/resolv.conf.d/head

add new nameserver i.e.

nameserver 1.1.1.1

nameserver 1.0.0.1


sudo resolvconf --enable-updates

sudo resolvconf -u

sudo systemctl restart resolvconf.service

sudo systemctl restart systemd-resolved.service

to check: resolvectl status