WKM Stop the Resolve Service by running the following command in Ubuntu systemctl stop systemd-resolved.service Then disable it completely by running the following command: systemctl disable systemd-resolved.service You can delete the existing Resolve Configuration file so we can set fresh name server rm -f /etc/resolv.conf Now setup the Google nameservers or any other like cloudflare namerservers. echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf Now try pinging yahoo.com and you will see you are connected to the internet.