The internet connection problem in linux

DnyaneshwariKolapkar avatar
GitHub Account@DnyaneshwariKolapkar
LanguageLINUX
Published At2023-08-01 17:02:39

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).

Screenshot from 2023-08-01 22-24-09

The Linux Story!

To Solve the Internet Connection Problem:

  1. Open the resolv.conf file in a text editor like nano or any other of your choice with superuser privileges using the following command:
1sudo nano /run/NetworkManager/resolv.conf
  1. Add the following lines to the resolv.conf file and save it:
1nameserver 8.8.8.8
2nameserver 8.8.4.4
  1. 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.

Screenshot from 2023-08-01 22-31-56

A Linux demo/repos link

No response

PayPal Link for Donation (Linux Storyteller)

No response

Share This Story