Failed to install add-on - error

Recently I am getting the following error.

Failed to install add-on

Can’t install homeassistant/aarch64-addon-ssh:9.3.0: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=9.3.0&fromImage=homeassistant%2Faarch64-addon-ssh&platform=linux%2Farm64: Internal Server Error (“Get “https://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 127.0.0.1:53: read udp 127.0.0.1:44582->127.0.0.1:53: read: connection refused”)

Anyone have any suggestions on how to fix this ?