Earlier quoted context omitted.
Even once you use the private `dns_config*()` APIs on macOS, you need to put in heavy lifting to correctly handle scoped, service-specific providers, supplemental matching rules, etc -- none of which is documented, and can change in the future. Since you're not using the system resolver, you won't benefit from mDNSResponder's built-in DNS caching and mDNS resolution/caching/service registration, so you're going to ne…
Good points, all - there is a lot of subtlety here. CFHostStartInfoResolution is deprecated, no? https://developer.apple.com/documentation/cfnetwork/cfhostst... :) That leaves us with DNSServiceGetAddrInfo? https://developer.apple.com/documentation/dnssd/dnsservicege... :) or some kinda convoluted use of Network and NWEndpoint/NWconnection with continuations could do the same?
https://developer.apple.com/documentation/technotes/tn3151-c...