Recently some of the websites stopped loading on any browser of my Ubuntu 18.04. When I try to open sites like StackOverflow, UbuntuForums, seedr.cc, gives me the following message (other browsers give similar messages):
This site can’t be reached
https://ubuntuforums.org/ is unreachable.
ERR_ADDRESS_UNREACHABLE
As my machine is dual-booted, I tried opening those sites in Windows over that very same Wi-Fi and they load perfectly fine. The device that I am using as a hotspot is a Mobile phone so I tried opening those websites over the phone and they load there as normal.
So, it seems that the problem is with ubuntu but in further testing, I used different phones as a hotspot, and now I am able to load all websites properly on Ubuntu. So, I am having a tough time pinpointing where the problem is. Following is the output of systemd-resolve --status on two devices.
Hotspot where some sites won't load:
Link 3 (wlp6s0)
Current Scopes: DNS
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 2409:4042:250b:62c2::74
DNS Domain: ~.
Working hotspot:
Link 3 (wlp6s0)
Current Scopes: DNS
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 192.168.43.1
DNS Domain: ~.
So, here I see that the DNS server in the former case is IPv4 while in later is IPv6. So, I analyze the IP addresses in ping. I found that in former case when I ping I see destination address as IPv6 and in later IPv4. I former some websites like ubuntuforums.org or www.seedr.cc failed ping request with connect: Network is unreachable while others like google.com succeeded.
So, I think that the problem is IPv4 sites are not loading. So, I tried this thread IPv6 is working, but IPv4 isn't but it didn't work. I also tried manually adding a DNS nameserver to resolv.conf file. but when I restarted the network manager it was reset. I doubt the issue is with the nameserver because in both hotspot nameserver is the same.
Even after doing all this, I am not able to solve this issue. So, it will be great if someone can give me some lead on how to proceed. If some more information is necessary then please do tell me in the comments. I will provide it as soon as possible.
Thank you.