sudo vim /etc/dhcp/dhclient.conf
# put on last line
supersede domain-name-servers 8.8.8.8;
# restart service
sudo service network-manager restart
sudo systemctl restart NetworkManager.service
sudo vim /etc/resolv.conf
And added these lines (before other nameservers):
nameserver 8.8.8.8
nameserver 208.67.222.222
nameserver 4.2.2.2
sudo nano /etc/dhcp/dhclient.conf
The reason for DNS_PROBE_FINISHED_NXDOMAIN is typically due to a misconfiguration or problem with your DNS. DNS is short for Domain Name System, which helps direct traffic on the internet by connecting domain names with actual web servers. Essentially, it takes a human-friendly request – a domain name like kinsta.com – and translates it into a computer-friendly server IP address – like 216.3.128.12.
When a user enters a URL in their web browser, DNS gets to work to connect that URL to the IP address of the actual server. This is called DNS name resolution and involves a DNS recursor querying various nameservers to figure out the actual IP address of a server. If DNS fails to resolve the domain name or address then you might receive the DNS_PROBE_FINISHED_NXDOMAIN error. The NXDOMAIN part stand stands for Non-Existent Domain. Read more about DNS and how it works.