I am facing error with my internet connection [closed]

enter image description here

Suddenly my connection is lost

enter image description here


Solution 1:

I've had this issue many times on new machines and I never know how to prevent it. But here's your fix.

Open /etc/NetworkManager/NetworkManager.conf with root privileges:

sudo nano /etc/NetworkManager/NetworkManager.conf

And comment out this line:

dns=dnsmasq

So it reads:

#dns=dnsmasq

Then run:

sudo service network-manager restart

This will cause NetworkManager to update your DNS server, instead of it referencing your machine for the DNS server.