title: redirect all client http url with android hotspot
body: <p>I try to make app to share my file with open my mobile hotspot, and friend can connect it .
  Then open browser key in url to download.
  I use iptables to redirect from port 80 to my web server port 8888, it works.
  But when I change /etc/hosts file/ add 1'92.168.43.1 xx.com'</p>
  
  <p>it's fail for client to used.
  I ping the xx.com at my hotspot phone and it works.</p>
  
  <p>I try at android 2.3.7 xiaomi  android root enviroment
  Use nandhttpserver library 
  (I try use dns server app, but failed(I have redirect port 53 to dns server))
  Can any one help me?</p>
  
  <p>my host script</p>
  
  <pre><code>private boolean chnagehost(String appendStr) {
      boolean res; 
      String temp ="mount -o rw,remount -t rootfs /;mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system;"
              +"cp -f /etc/hosts /etc/hosts.backup;"
              +"echo "+ appendStr + " &gt;&gt; /etc/hosts;echo -e '\n\r' &gt;&gt; /etc/hosts";
  
      res = executeRootShellCommand(temp);
      //res = executeShellCommand("cp -f /etc/hosts /etc/hosts.backup");
  
      //res= executeShellCommand("echo "+ appendStr + " &gt;&gt; /etc/hosts");
       return res;
  }
  </code></pre>