Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're doing development on a remote server that only listens on internal IPs. We VPN into the remote network, and then use custom hosts files to test what we're doing in the browser.

Now we're working on a mobile interface, and would like to test from non-rooted mobile devices. We can make our dev servers listen on public IPs, however without modifying the hosts file on the devices themselves, we have no way to tell them to resolve our private domains to the IPs of our choice.

is there any way to configure our router which is running dd-wrt to resolve our private domain names to the IPs of our choice?

share|improve this question
up vote 3 down vote accepted

In DD-WRT, go to Services->DNSMasq (Enable)

In the DNSMasq box, enter each hostname in the following format, one per line:


After applying settings, and if DNS is not cached, you should be able to resolve the new names.

share|improve this answer
Great, that worked! – user152533 Jan 8 '13 at 18:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.