Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#14897 closed defect (fixed)

meek-client looks for /etc/resolv.conf on Android

Reported by: n8fr8 Owned by: dcf
Priority: Medium Milestone:
Component: Obfuscation/meek Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I have meek-client successfully cross compiled and starting up on Android, but as requests come in, there is a DNS lookup that relies on /etc/resolv.conf which doesn't exist on Android:

2015/02/13 16:16:00 error in handling request: dial tcp: error reading DNS config: open /etc/resolv.conf: no such file or directory

Child Tickets

Change History (5)

comment:1 follow-up: Changed 2 years ago by n8fr8

This might require a change in how we build Go apps for Android, and is not an issue with meek-client code itself

See: https://gist.github.com/ernesto-jimenez/8042366

comment:2 in reply to: ↑ 1 Changed 2 years ago by dcf

Replying to n8fr8:

This might require a change in how we build Go apps for Android, and is not an issue with meek-client code itself

See: https://gist.github.com/ernesto-jimenez/8042366

What did you do for your release at https://lists.mayfirst.org/pipermail/guardian-dev/2015-February/004243.html?

I guess fixing this problem is on the roadmap for Go 1.5: https://golang.org/issue/8877.

One workaround, I think, would be to always use an upstream HTTP proxy—then net/http should expect the proxy to resolve the name.

comment:3 Changed 2 years ago by n8fr8

There is no official support for targeting Android in GoLang 1.4.1 release, using the Android Native Dev Kit (NDK) standalone toolchain. This means that the DNS resolution is now handled correctly.

Updated build info here:
https://github.com/guardianproject/pluto/blob/master/BUILD.md
https://github.com/guardianproject/pluto/tree/master/go-android

comment:4 Changed 2 years ago by n8fr8

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 2 years ago by n8fr8

Oops, that should read "There is NOW official support..."

Note: See TracTickets for help on using tickets.