Error during installation of Juju

error: cannot install “juju”: Post https://api.snapcraft.io/v2/snaps/refresh:
dial tcp: lookup api.snapcraft.io on [::1]:53: read udp
[::1]:43374->[::1]:53: read: connection refused