Skip to main content

Alpine Linux sometimes DNS is not resolved [Resolved]

Sometimes when I run the commands:

sudo apk update && sudo apk upgrade

Over Alpine linux fails to update the packages even if connected to internet. But if I do sudo su "echo 'nameserver' > /etc/resolv.conf" I manage to dowload them. But this solution:

  • Causes me frustration I need to set dns all over the time.
  • Sometimes /etc/resolv.conf gets overriden by itself.

How I can have a more permanent solution.

Question Credit: Dimitrios Desyllas
Question Reference
Asked May 13, 2019
Posted Under: Unix Linux
1 Answers

Your Answer