Skip to content

A minimal example to show that DNS doesn't work when cross compiling to ARM and running on Android

Notifications You must be signed in to change notification settings

klingtnet/golang-android-dns-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal example to show that DNS doesn't work when cross compiling to ARM and running on Android

Usage (requires adb):

$ ./build_and_run.sh
dns-test: 1 file pushed. 23.9 MB/s (6673768 bytes in 0.266s)
2019/07/12 09:11:42 failed to send request: Head https://golang.org: dial tcp: lookup golang.org on [::1]:53: read udp [::1]:41875->[::1]:53: read: connection refused

Android NDK

Get the Android NDK:

$ curl --fail 'https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip' | bsdtar -xvzf-

About

A minimal example to show that DNS doesn't work when cross compiling to ARM and running on Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published