how to get dns server ip in iphone

后端 未结 1 1007
心在旅途
心在旅途 2021-01-28 03:05

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条回答
  •  执笔经年
    2021-01-28 03:33

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

    0 讨论(0)
提交回复
热议问题