I have been bashing my head against the fact that on the iPhone you seemingly cannot access /etc/resolv.conf, or use functions from the Mac such as SCDynamicStore stuff. I have seen many people asking this question, a few related to the same package I was trying to use – ares.
Eventually I managed to find a fix which uses the libresolv to find the DNS servers. This seems to work just fine and I have shown the patch to
ares_init.c below for reference.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
As per most of my posts these days, this is just a brain dump. I’ll try to pad it out as soon as possible