You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Fixes issue c-ares#207. Uses LinkProperties.getDomains() to get a list of search domains and adds them to the suffix list. This also adds a new helper function to split strings into an array based on multiple delimiters replacing multiple other functions for dealing with string splitting.
Submitter: John Schember (@user-none)
Approved-by: Brad House (@bradh352)