github / gh-net

A network bridge between a Codespace and a local machine.
https://github.com/github/gh-net
285 stars 21 forks source link

[Alpine Linux]: DNS resolution inside an `Alpine Linux`-based Codespace sporadically fails #12

Open legomushroom opened 2 years ago

legomushroom commented 2 years ago

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

  1. Either add explicit ip-address hostname mapping to /etc/hosts file inside a Codespace. This will help DNS resolution process.

  2. Or modify the /etc/resolv.conf file to keep only the VPN Gateway-defined nameserver (the one marked with # Codespaces VPN Gateway comments)