I'm having problems with my DNS in Ubuntu. The webpage won't show up. I've been trouble shooting for hours.
I have tried clearing the cache but none of the commands work.
I have tried it this way below and it hasn't worked. The restart commands don't work.
Resolved: DNS_PROBE_FINISHED_NXDOMAIN in Linux
- Step 1. Open terminal and add below command
sudo nano /etc/dhcp/dhclient.conf
- Step 2. Now add below line in file
supersede domain-name-servers 8.8.8.8;
Now, save file
- Step 3. Restart the network
sudo service network-manager restart
or
sudo systemctl restart NetworkManager.service
I have also tried it this way: sudo vim
doesn't work but sudo nano
does when I insert the nameservers and hit Ctrl+X Y enter the nameservers I added don't save and once again none of the commands to restart the system work.
for Ubuntu 20.04 run below command: sudo vim /etc/resolv.conf
. If above does not work run sudo nano /etc/resolv.conf
Add below name servers to file and refresh the page will work fine: nameserver 8.8.8.8 nameserver 208.67.222.222 nameserver 4.2.2.2
I have also tried clearing Chrome's cache, restarting my router, and restarting my computer. Nothing that I have tried on any website or forum has worked so far.