Current time: 12-16-2017, 11:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support SetDNS for Android Mobile
08-26-2014, 04:00 AM
Post: #1
Support SetDNS for Android Mobile
It would be great to have SetDNS support for the Android mobile devices. This would allow redirection of requests to temporary testing setups for domains already in production.
Find all posts by this user
Quote this message in a reply
08-26-2014, 05:45 AM
Post: #2
RE: Support SetDNS for Android Mobile
Doing DNS spoofing "right" (the way we do in desktop where we keep the DNS times and just change the answer) is hard on mobile and is something we are working on but in the meantime you can get most of what you'd need just by using the custom command-line feature (which does work for the android agents). Using --host-rules you could map domains to your test host as needed: http://peter.sh/experiments/chromium-com...host-rules
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2014, 09:45 AM
Post: #3
RE: Support SetDNS for Android Mobile
Thanks for the quick response and the pointer on the Chrome command line feature!

I tried --host-rules MAP http://www.example.com 192.168.1.76 in the Chrome command line feature and I'm getting back (Invalid command-line option: "192.168.1.76"). I was using another hostname and IP but that shows the result. I tried various ways to escape it " ', etc but no luck. It seems like it does not like the spaces that this command line requires.

Any chance you have an example of the command that works with WPT?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)