Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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:

address=/localhost/127.0.0.1

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

 
discard

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.