apple / swift-async-dns-resolver

A Swift library for asynchronous DNS requests, wrapping c-ares with Swift-friendly APIs and data structures.
Apache License 2.0
82 stars 12 forks source link

Error: other [-65563]: under MacOS #18

Closed asnov closed 5 months ago

asnov commented 5 months ago

Hello! I need to use DNS resolution inside multi-platform app so I need this package to run under IOS and MacOS. When I try to run it under MacOS resolver.queryA(name: "apple.com") gives me an other [-65563]: error. Any idea how can I solve it?

Here is a demo project: https://github.com/asnov/AsyncDNSResolverDemoMacOS Here is what I can see in the console:

Error: other [-65563]: 
AsyncDNSResolverDemoMacOS/Resolver.swift:34: Fatal error: DNS query throwed!

What am I doing wrong? Thank you!

mkbrwr commented 5 months ago

This might help https://forums.developer.apple.com/forums/thread/67792

asnov commented 5 months ago

It helped as well. @mkbrwr Thank you very much!

yim-lee commented 5 months ago

🥳