Temporary failure in name resolution on Ubuntu Bionic

#1

I am trying to spin up a docker container but I keep getting DNS issues. Doing:
sudo docker-compose -p mailu up -d
gives
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution
but it is not just a docker issue because pinging google.com also gives:
ping: google.com: Temporary failure in name resolution

Pinging my Ubuntu Xenial instance works fine

I can’t really keep working on this project until this is resolved, I also commented on an open github issue dealing with this.