开发者

How To Change DNS Address Of iPhone Through Program

开发者 https://www.devze.com 2023-01-03 11:41 出处:网络
I like to change DNS address o开发者_如何学运维f iPhone through my application. Is it possible ? Any one let me know how i can do it, it will be very helpful. Thanks in advance.If by DNS address you m

I like to change DNS address o开发者_如何学运维f iPhone through my application. Is it possible ? Any one let me know how i can do it, it will be very helpful. Thanks in advance.


If by DNS address you mean the IP address of the DNS server the iPhone uses for queries to resolve the domain name you provide, then it is not possible in a non-jailbreaked device. The IP address of the DNS server is provided to the iPhone through DHCP. So you would therefore have to change the DHCP settings in the setup of the network you connect to, eg. the Wifi access point.

If you want to change the IP address assigned to the iPhone (and possibly provided to other devices through DNS) then again you would have to modify the DHCP settings on your server. This IP address is provided to the iPhone through DHCP and possibly coordinated with the DNS server in the network.


Unfortunately it's not possible from an app. Oh, and I believe you mean IP address, right?

there was a trick to reset an ip address by turning airplane mode on and off, but the ip address is assigned to you by the network you are connecting to. In the apps you don't have a way to request a "reset" like this. this is done on the system level and not exposed as a method an app can use


google up netinfo+ its an app for setting dns on iphone

0

精彩评论

暂无评论...
验证码 换一张
取 消