2
/ # wget -O - https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_ID}
_Linux-64bit.tar.gz
--2021-02-09 08:03:32--  https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_extended_0.76.5_Linux-64bit.tar.gz
Resolving github.com (github.com)... failed: Name does not resolve.

Inside alpine, I was unable to resolve github.com. I checked /etc/hosts and didn't find anything wrong. However other sites like google.com did resolve.

1

1 Answer 1

6

wget needs to be on ipv4.

wget -4 -O - https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_
ID}_Linux-64bit.tar.gz
2
  • whats this -4 option ? wget dont have any such option ..How this command worked for you? Jun 29, 2021 at 13:44
  • 4
    @SubodhJoshi I know it has been a while, but the answere is that when you use "wget" straight from alpine, it actually is busybox that implements part of wget. But when you do a "apk add wget" you get an actual wget that also supports things such as -4
    – DRoppelt
    May 3, 2022 at 20:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.