On my Ubuntu 20.04 machine it seems that some internet addresses are blocked or unavailable. I cannot not reach github.com and askubuntu.com from the browser. Also cloning from github via the terminal is not possible. Other websites work like google.com.
Even sudo apt update
seems to have connection problems.
Update:
I have run systemd-resolve --status
for DNS info and here is the output: