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

c-ares ignores domain search suffix on Android #207

ArtsviKarayan opened this Issue Jul 12, 2018 · 2 comments


None yet
3 participants

ArtsviKarayan commented Jul 12, 2018

On Linux the domain search is retrieved from the resolve.conf.
The following example does not work on Android (e.g. ok on Linux):

  • Domain search: ""
  • Actual domain: ""
  • Name passed to ares_gethostbyname: "actualdom"
  • Result: No resolved ip

I have investigated the sources little bit and it seems that the "domain search" config is not initialized on Android. The name servers are retrieved from the Android system properties but the domain search property is not retrieved and used any more.


This comment has been minimized.


bradh352 commented Jul 28, 2018

You are right, it would make sense to also pull in getDomains() from the link properties.
Think this was just skipped due to the sheer complexity of calling Java from C, but it would be good to add. Pulling in the original submitter of the modern Android code for c-ares, @user-none


This comment has been minimized.


user-none commented Jul 30, 2018

Pull request for this #211.

@bradh352 bradh352 closed this in cd4ee05 Aug 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment