Skip to content
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

Use libresolv to initialize cares on iPhone targets #29

Closed
wants to merge 1 commit into from

Conversation

gjasny
Copy link
Contributor

@gjasny gjasny commented Nov 25, 2015

On iPhone targets like iOS, watchOS or tvOS the file
/etc/resolv.conf cannot be used to configure cares.

Instead the resolver library is queried for configuration
values.

This patch has successfully been tested with any combination of IPv4 and IPv6 name servers.

Theoretically the libresolv code path could also be used on OS X.

@gjasny
Copy link
Contributor Author

gjasny commented Jan 16, 2016

Added check for strdup return value.

On iPhone targets like iOS, watchOS or tvOS the file
/etc/resolv.conf cannot be used to configure cares.

Instead the resolver library is queried for configuration
values.

CC: Yury Kirpichev <ykirpichev@yandex-team.ru>
@daviddrysdale
Copy link
Member

Thanks, I've pulled that change in (with a trvial tweak to break out of the loop on strdup failure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants