title: Does hosts file exist on the iPhone? How to change it?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>On my Mac or Windows, I simply add: <code>192.168.0.20 http://www.google.com</code> to the hosts file.</p>
  
  <p>Now how do I let my iPhone know the URL: <a href="http://www.google.com" rel="noreferrer"><code>http://www.google.com</code></a> ?</p>