how to get dns server ip in iphone

本小妞迷上赌 提交于 2020-01-11 13:39:19

问题


I have tried to fetch /etc/resolv.conf by open("/etc/resolv.conf", 0644)

but it return -1 and the errno is 2 which means "no such file"

what can I do?


回答1:


You can't access files outside your Application's sandbox.



来源:https://stackoverflow.com/questions/2972805/how-to-get-dns-server-ip-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!