Step 5: Here find and click on the DNS box , enter the DNS server address you want to use in the box.
Note: To use multiple DNS addresses, you must enter a comma between the addresses.
Step 6: Finally click Apply to apply the changes.
Method 2: Change DNS for Ubuntu through Terminal
Another way to change DNS on Ubuntu is through the Terminal command window. The advantage of this method is that it is easy to do and does not require digging into the settings like method 1 above.
The first step you need to do is add the nameserver to the dnsmasq configuration file. However, because dnsmasq is not installed on Ubuntu by default, we will have to take the additional step of installing dnsmasq. To do this thing:
Open Terminal and enter the command below:
sudo apt-get install dnsmasq
After installing dnsmasq, the next step is to run the command below to edit the DNS configuration file:
sudo nano /etc/dnsmasq.conf
On the window displayed on the screen, find the entry named " Add other nameservers here " and replace it with the DNS server address you want to use as shown below:
So above, TipsMake has just shown you 2 ways to change DNS for Ubuntu.
Besides, if you use Windows 10, you can also change DNS in the simplest way through the steps below.