-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS name resolution fails on android #3025
Comments
can you try to change this in the makefile: |
@agazso would be possible to add more information about the hardware and OS? E.g.: was this tested on an emulator or real hardware (if so, what phone), what android version was used, etc... |
I did not build for myself but I downloaded this binary: I may try to build it later, but first I guess I will need to update the Go toolchain and it is not so fun on android :) |
It was a real phone, Xiaomi Redmi 4X, running Android 9 and running Bee in Termux. It seems that this is a known issue, I found this with a quick search: I guess @acud also found these, because his suggestion is similar to what others suggest in the linked issue (e.g. CGO_ENABLED=1) |
Actually I haven't, but it is known that when compiling with CGO, some other DNS resolver gets dynamically linked 🤷 So it seemed like a possible workaround. |
some interesting info here... https://honnef.co/posts/2015/06/statically_compiled_go_programs__always__even_with_cgo__using_musl/ |
We have no plans to support android in the near future. |
Context
The arm64 binary of bee can be run on android without any dependencies. However there is an error when starting bee, because it is not able to join to the
swap-endpoint
by name. The error seems to be that the DNS name resolution fails.As a workaround we built a javascript proxy and run it on localhost and use the localhost address as a
swap-endpoint
, but it would be better if swarm would just run natively on android without problems.The text was updated successfully, but these errors were encountered: