gh-net
gh-net copied to clipboard
[Alpine Linux]: DNS resolution inside an `Alpine Linux`-based Codespace sporadically fails
Apline Linux kernel queries a random nameserver as oppose to using nameservers in sequence as other Linux distros would do. This causes some of DNS requests to go past our defined nameserver.
🔨 Workarounds
-
Either add explicit
ip-address hostnamemapping to/etc/hostsfile inside a Codespace. This will help DNS resolution process. -
Or modify the
/etc/resolv.conffile to keep only the VPN Gateway-defined nameserver (the one marked with# Codespaces VPN Gatewaycomments)