Given your situation and the details you've provided, it seems like you're experiencing issues with accessing most websites on your Linux system, while certain sites like Gmail and Facebook work. The inability to ping 8.8.8.8
suggests a DNS resolution issue, which is likely the root cause of your problem. Here's a step-by-step guide to help you troubleshoot and potentially resolve the issue:
First, let's ensure your DNS settings are correctly configured. You can check your current DNS settings by looking at the /etc/resolv.conf
file. Open a terminal and type:
cat /etc/resolv.conf
This file should contain nameserver entries, which are your DNS servers. If it doesn't, or if it's not correctly configured, you'll need to set it up.
To set up DNS servers, you can edit the /etc/resolv.conf
file directly, but it's recommended to use nmcli
for NetworkManager connections to ensure the changes persist across reboots. Here's how to set Google's DNS servers as an example:
sudo nmcli con mod "Your Connection Name" ipv4.dns "8.8.8.8 8.8.4.4"
Replace "Your Connection Name"
with the name of your network connection. You can find this by running nmcli con show
.
After setting up your DNS servers, restart NetworkManager to apply the changes:
sudo systemctl restart NetworkManager
Now, test if DNS resolution is working by pinging a domain, for example:
ping google.com
If you get a response, it means DNS resolution is working, and you should be able to access websites.
Since you mentioned the possibility of IPv6 autoconfiguration issues, you can temporarily disable IPv6 to see if it resolves the issue. Edit your connection settings with nmcli
:
sudo nmcli con mod "Your Connection Name" ipv6.method ignore
Then, restart NetworkManager again:
sudo systemctl restart NetworkManager
Try accessing a website again to see if the issue is resolved. If not, you might want to consider resetting your network settings or seeking further assistance.
- Check Firewall and Antivirus: Ensure your firewall or antivirus software is not blocking access to websites.
- Try a Different Browser: Sometimes, browser-specific issues can cause problems. Try accessing websites in a different browser.
- Update Your System: Ensure your Fedora system and all packages are up to date. You can update your system by running
sudo dnf update
.
If these steps do not resolve the issue, it might be helpful to seek further assistance from the Fedora community forums or support channels, as there could be a more specific issue with your Fedora system or network configuration.
Citations: [1] https://discussion.fedoraproject.org/t/most-websites-wont-open/84475 [2] https://discussion.fedoraproject.org/t/having-network-issues/78189 [3] https://askubuntu.com/questions/886359/ping-8-8-8-8-works-but-ping-www-google-com-doesnt [4] https://superuser.com/questions/1626322/ping-failing-destination-host-unreachable [5] https://bbs.archlinux.org/viewtopic.php?id=220242 [6] https://unix.stackexchange.com/questions/419385/fedora-25-server-can-ping-an-ip-but-not-a-url-cant-update [7] https://upcloud.com/resources/tutorials/troubleshoot-network-connectivity-linux-server [8] https://www.reddit.com/r/linux4noobs/comments/qmkr0j/cant_fix_ping_googlecom_temporary_failure_in_name/ [9] https://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/