# Wget: unable to resolve host address 'github.com'

**URL:** <https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924>\
**Category:** troubleshooting\
**Tags:** docker, macos\
**Created:** [March 29, 2022, 10:49am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924 "2022-03-29T10:49:10Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 29, 2022, 10:49am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/1 "2022-03-29T10:49:10Z")

</div>

Hello,  
I have the following problem from a couple of days or more.  
My DNS is working properly. when I copy/paste the Storj link in to a browser it opens a page where is written only the GitHub link . If I separately open the GitHub link alone in a new tab it does download the file. Though the whole process seems to fail in the storage node:

–2022-03-29 10:01:30-- [https://version.storj.io/processes/storagenode-updater/minimum/url?os=linux&arch=amd64](https://version.storj.io/processes/storagenode-updater/minimum/url?os=linux&arch=amd64)  
Resolving version. storj. io (version. storj. io)… 35.224.88.204  
Connecting to version. storj. io (version. storj. io)|35.224.88.204|:443… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 92 [text/plain]  
Saving to: ‘STDOUT’

```
 0K 100% 10.3M=0s

```

2022-03-29 10:01:30 (10.3 MB/s) - written to stdout [92/92]

–2022-03-29 10:01:30-- [https://github.com/storj/storj/releases/download/v1.50.4/storagenode-updater\_linux\_amd64.zip](https://github.com/storj/storj/releases/download/v1.50.4/storagenode-updater_linux_amd64.zip)  
Resolving github . com (github . com)… failed: Name does not resolve.  
wget: unable to resolve host address ‘github . com’

Thanks!

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [March 29, 2022, 1:25pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/2 "2022-03-29T13:25:48Z")

</div>

Welcome @locobgr to our community.

It looks very weird that you can access that link from the browser but not from your terminal with `wget`.

Can you please provide more information about your environment (machine where the browser is running and the machine where you’re running`wget`, if it’s different, and if you’re using some layer, container, etc.) and the exact `wget` command that you’re running?

---

<div class="post-metadata">

**Author:** ![sembeth](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/sembeth/32/63_2.png) [@sembeth](https://forum.storj.io/u/sembeth)\
**Post date:** [March 29, 2022, 4:33pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/3 "2022-03-29T16:33:43Z")

</div>

Hello @locobgr  
this seems related to:

> [@Weird issue with storagenode on synology docker](https://forum.storj.io/t/weird-issue-with-storagenode-on-synology-docker/17867):
>
> Hi, Trying to run storagenode container on synology docker (DSM7). The container starts and then stops. Error is: downloading storagenode-updater stdout 22:31:54 --2022-03-25 22:31:54-- https://version.storj.io/processes/storagenode-updater/minimum/url?os=linux&arch=amd64 stderr 22:31:59 Resolving version.storj.io (version.storj.io)... failed: Try again. stderr 22:31:59 wget: unable to resolve host address 'version.storj.io' stderr 22:31:59 http://: Invalid host name. This is not a DNS i…

and

> [@Docker 1.50.4 restarts many times after "unable to resolve host address 'version.storj.io'"](https://forum.storj.io/t/docker-1-50-4-restarts-many-times-after-unable-to-resolve-host-address-version-storj-io/17862):
>
> Hello, I have updated my stoagenodes to the latest tag. There sometimes seems to be a problem with resolving dns? If wget: unable to resolve host address 'version.storj.io' fails: It stops the container immediately and restart it because of --restart unless-stopped. I had some storagenodes that restarted many times over until it could resolve the dns. Environment: Synology DS918+ with DSM 7.0.1-42218 Update 3. uname -a: Linux Sembeth 4.4.180+ #42218 SMP Mon Oct 18 19:17:56 CST 2021 x86\_6…

Are you getting the logs from a Storagenode in a Docker container? If yes it is recommended in the documentation to use `--restart unless-stopped`

→ [Storage Node | Storj Docs](https://docs.storj.io/node/setup/cli/storage-node/)

I had the same problem. Because of the `--restart unless-stopped` the container restarts a few times and can eventually resolve the DNS.

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 30, 2022, 12:42pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/4 "2022-03-30T12:42:41Z")

</div>

I have it enabled and restarts like this constantly. I had checked these posts before posting and DNS is working

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 30, 2022, 12:43pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/5 "2022-03-30T12:43:51Z")

</div>

macOS 10.15.7, docker 2.1.0.5

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [March 30, 2022, 2:12pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/6 "2022-03-30T14:12:27Z")

</div>

It looks a docker issue.  
What container image are you using? we’d like to reproduce it in our side for being able to investigate it.

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 30, 2022, 3:19pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/7 "2022-03-30T15:19:39Z")

</div>

Docker version 19.03.5, build 633a0ea  
storjlabs/storagenode latest d6826b3338c4

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [March 31, 2022, 1:25pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/8 "2022-03-31T13:25:09Z")

</div>

What CPU architecture does your machine have?

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [March 31, 2022, 1:30pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/9 "2022-03-31T13:30:54Z")

</div>

@locobgr please try the following  
`docker run --rm -ti busybox /bin/sh`

With that you’ll be in a terminal in the container, then execute:

`wget https://github.com/storj/storj/releases/download/v1.50.4/storagenode-updater_linux_amd64.zip`

Does it download the file?

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 31, 2022, 1:33pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/10 "2022-03-31T13:33:23Z")

</div>

Connecting to [github.com](http://github.com) (140.82.121.4:443)  
wget: note: TLS certificate validation not implemented  
Connecting to [objects.githubusercontent.com](http://objects.githubusercontent.com) (185.199.108.133:443)  
saving to ‘storagenode-updater\_linux\_amd64.zip’  
storagenode-updater\_ 100% |\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*| 7917k 0:00:00 ETA  
‘storagenode-updater\_linux\_amd64.zip’ saved

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [March 31, 2022, 5:36pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/11 "2022-03-31T17:36:54Z")

</div>

Thanks @locobgr

I’ve pulled the same image in my machine and it works, it’s able to download the files. However, I run Linux on my machine and its CPU is Intel(R) Core™ i7-8550U CPU @ 1.80GHz.

Is it still happening on your machine?

Please provide the CPU that your machine has, so if the problem is persisting we’ll try to reproduce it in a machine as much similar as yours.

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [March 31, 2022, 7:42pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/12 "2022-03-31T19:42:53Z")

</div>

Thank you @ifraixedes for your help.  
I think it did pulled it under your instructions but after that what should I do?  
I stop/start the the storagenode container but the same restart loop  
Mine is Intel(R) Core™ i7-3770 CPU @ 3.40GHz

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [April 1, 2022, 5:44am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/13 "2022-04-01T05:44:14Z")

</div>

The only fix is to do not use alpine. Never. Too many hacks are needed to make it working in all circumstances. At the moment the 1.50.4 docker images have used alpine…  
I hope it will be fixed in the next release.

But now you can try to add to your `docker run` command the option `--dns 8.8.8.8`, may be it can help.

---

<div class="post-metadata">

**Author:** ![ifraixedes](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ifraixedes/32/71_2.png) [@ifraixedes](https://forum.storj.io/u/ifraixedes)\
**Post date:** [April 1, 2022, 11:05am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/15 "2022-04-01T11:05:56Z")

</div>

What I run for testing is `docker run --rm -ti storjlabs/storagenode --version` and I see how it downloaded the files.

I think @Alexey got the point.

---

<div class="post-metadata">

**Author:** ![locobgr](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/locobgr/32/10544_2.png) [@locobgr](https://forum.storj.io/u/locobgr)\
**Post date:** [April 3, 2022, 11:22am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/20 "2022-04-03T11:22:02Z")

</div>

I did the following :

docker stop -t 300 storagenode  
docker rm storagenode  
docker pull storjlabs/storagenode:latest  
Status: Image is up to date for storjlabs/storagenode:latest  
docker .io/storjlabs/storagenode:latest  
docker run -d --restart unless-stopped --stop-timeout 300 --dns 8.8.8.8 \

Now seems to work

Still remains the question why I had to add the google dns if before the latest release was working flawlessly?

Thank you @Alexey and @ifraixedes for your help

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [April 3, 2022, 1:09pm UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/21 "2022-04-03T13:09:30Z")

</div>

We now uses the self-updating image and it’s based on Alpine OS. The Alpine is known as too bad when the network is unstable or not so quick to resolve hosts, the busybox (used in Alpine) version of wget has short timeouts for response. Due this limitation if your ISP’s DNS is a little bit slow, the resolving will fail.

We hope to fix this issue with the next release

---

<div class="post-metadata">

**Author:** ![alaska4life](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alaska4life/32/1125_2.png) [@alaska4life](https://forum.storj.io/u/alaska4life)\
**Post date:** [September 20, 2022, 7:40am UTC](https://forum.storj.io/t/wget-unable-to-resolve-host-address-github-com/17924/22 "2022-09-20T07:40:53Z")

</div>

Thanks, this fixed it for me. “–dns 8.8.8.8”.
