Skip to content

c-ares ignores domain search suffix on Android #207

Description

@ArtsviKarayan

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: "example.domain.search.com"
  • Actual domain: "actualdom.example.domain.search.com"
  • 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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions