How to solve connection handshake context deadline exceeded

I did and make changes in both file but issue is till coming

sudo nano /etc/resolv.conf

nameserver 8.8.8.8
```
and
sudo nano /etc/systemd/resolved.conf
```

DNS=8.8.8.8 
```
after that i restart the services but again same error coming