The internet connection problem in linux
The Backstory about your Linux Metaphor
Internet Connection Problem related to DNS After Dual Booting
As depicted in the image provided, the ping test with an IP address shows successful packet transmission, but when attempting to ping a website name, a name resolution error is encountered. This indicates that there is an internet connection, but there seems to be an issue with the Domain Name System (DNS).
The Linux Story!
To Solve the Internet Connection Problem:
- Open the
resolv.conf
file in a text editor likenano
or any other of your choice with superuser privileges using the following command:
1sudo nano /run/NetworkManager/resolv.conf
- Add the following lines to the
resolv.conf
file and save it:
1nameserver 8.8.8.8 2nameserver 8.8.4.4
- After making the changes, you need to restart the
systemd-resolved.service
to apply the new DNS settings. Execute the following command:
1sudo systemctl restart systemd-resolved.service
Now, the DNS servers 8.8.8.8
and 8.8.4.4
(Google's Public DNS servers) have been added to your DNS resolution configuration. This should resolve the DNS issues, and you should be able to access websites using their names, and enjoy a working internet connection.
A Linux demo/repos link
No response
PayPal Link for Donation (Linux Storyteller)
No response
Share This Story