dns – Does hosts file exist on the iPhone? How to change it?
dns – Does hosts file exist on the iPhone? How to change it?
Another option here is to have your iPhone connect via a proxy. Heres an example of how to do it with Fiddler (its very easy):
http://conceptdev.blogspot.com/2009/01/monitoring-iphone-web-traffic-with.html
In that case any dns lookups your iPhone does will use the hosts file of the machine Fiddler is running on. Note, though, that you must use a name that will be resolved via DNS. example.local
, for instance, will not work. example.xyz
or example.dev
will.
This doesnt directly answer your question, but it does solve your problem…
What make of router do you have? Your router firmware may allow you to set DNS records for your local network. This is what I do with the Tomato firmware
dns – Does hosts file exist on the iPhone? How to change it?
Not programming related, but Ill answer anyway. Its in /etc/hosts
.
You can change it with a simple text editor such as nano
.
(Obviously you would need a jailbroken iphone for this)