Skip to content

server: Fix /etc/hosts DNS resolution

Warren Gifford requested to merge core/netgo into master

Created by: tsenart

This commit makes our server image binaries be built with the netgo network stack. Together with an added /etc/nsswitch.conf, this fixes /etc/host based DNS resolution in alpine images, which we use.

References:

  1. https://miek.nl/2015/june/06/go-and-alpine-linux/
  2. https://giedrius.blog/2018/11/22/etc-nsswitch-conf-and-etc-hosts-woes-with-the-alpine-and-others-docker-image-and-golang/

Fixes #3526 (closed)

Merge request reports

Loading