Cross-compiling Go for Android (Termux) With Working DNS

Go makes cross-compilation easy. Set GOOS and GOARCH , run go build , then you get a binary that Just Works. This means you can use Linux to build your project and get Windows, macOS and Android executables, across different CPU architectures too. Today I learned that this completely breaks down the moment you try to run a Go binary on Android (specifically Termux ). tl:dr; use CGO with the…