How to Set DNS Nameserver on Ubuntu 20.04
https://phoenixnap.com/kb/ubuntu-dns-nameservers18.05.2021 · Change DNS Nameserver via Config File. If you do not use a GUI, change DNS settings with the command line Netplan tool. 1. Go to the Netplan directory: cd /etc/netplan. 2. List the directory contents with ls to see the name of the yaml file containing network configuration. Open the file in a text editor. Your file may have a different name.