Can Not Connect to Google

I am using ubuntu 20.04 with hp laptop with rtl8723be driver. I can not connect to google when on wifi. I can access other url. Google shows this error in browser

This site can’t be reached  unexpectedly closed the connection.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_CLOSED

I tried to edit a file(suggested by some articles. I forgot the name of the file) and added nameserver 8.8.8.8 but it didn't work for me.

Output of cat /etc/resolv.conf

nameserver 127.0.0.53
options edns0

Output of ping -c3 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=51 time=99.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=51 time=67.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=51 time=68.6 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 67.856/78.493/99.054/14.541 ms

Output of ls -al /etc/resolv.conf

lrwxrwxrwx 1 root root 39 Jan 20 00:12 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

Any suggestions would be greatly appreciated!

6
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article