I like to change DNS address of 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With