Does c-ares support iOS? I need to use c-ares in my company’s iOS application. But it cannot work correctly using "ares_gethostbyname ()", and the status code in the callback function returns 11 (ARES_ECONNREFUSED) all the time. The same code works correctly on another orearting system such as Win32, Android.
Looking at the source code, I found the reason, that is, c-ares could not get the DNS servers in IOS. Because c-ares reads the /etc/resolv.conf file to get information about DNS servers, but this file does not exist on IOS.
So, do you support the c-ares IOS kernel? Or What is the IOS method for obtaining DNS server information?
source share