mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[GH-ISSUE #3317] Real iOS support #1168
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#1168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lemon-sh on GitHub (Oct 17, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3317
Is your feature request related to a problem? Please describe.
On *nixes,
hickory-resolverreads DNS configuration from/etc/resolv.confwhich is nonexistent on iOS, so it fails on that platform unless nameservers are explicitly specified.Describe the solution you'd like
Hickory could possibly use a similar approach to
c-aresfor retrieving the system configuration, or uselibresolvdirectly (also something that c-ares implements, and used to use on Apple before).The
libresolvsolution seems easier and could be used on other, non-Apple platforms too as far as I understand (and is possibly less likely to trigger App Store Review issues?), but there are caveats (see first link).Describe alternatives you've considered
dnssd-based implementation, also not ideal@lemon-sh commented on GitHub (Oct 18, 2025):
I should note that I'm willing to contribute code in order to get this done, but I'm not sure which FFI approach is preferred here by the hickory team. For example, for
libresolv:@djc commented on GitHub (Oct 18, 2025):
Aren't there existing crates that expose a Rust interface for this? Maybe you publish/maintain such a crate and we depend on it (for relevant platforms only)?
@lemon-sh commented on GitHub (Oct 19, 2025):
I couldn't find any that would fit the usecase here. There's libresolv-sys but it doesn't even build on my Mac, nor for docs.rs, and it seems to be glibc specific.
I could definitely try maintaining a crate like that though.
@lemon-sh commented on GitHub (Oct 21, 2025):
I've found a better solution without using any private APIs and just submitted a PR that would close this issue ^^