iphonednshosts-file

Does hosts file exist on the iPhone? How to change it?


I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network.

Now I need to test it with my iPhone, the problem is that my iPhone does not recognize that server due to the missing configuration for dns.

On my Mac or Windows, I simply add: 192.168.0.20 http://www.google.com to the hosts file.

Now how do I let my iPhone know the URL: http://www.google.com ?


Solution

  • This doesn't 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