Error/i need help

$ snap install hello-world

 error: cannot install "hello-world": Post
  
 https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup

  api.snapcraft.io: no such host

how do fix this please

Looks like a DNS issue whereby your system is having trouble resolving a hostname. Are you able to hit a website from the same host?

If you asking I can access site by typing the link, I am not sure, this text will appear, so I’m not sure if it mean connection or no:

# Method Not Allowed

The method is not allowed for the requested URL.

When I writing just api.snapcraft.io instead of full link, this messages sent, which mean I hit the website I think:

snapcraft.io store API service - Copyright 2018-2021 Canonical.