Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am going to configure dnsmasq for my local home network but I am not sure if I understand it. Basically I have a simple network at home:

laptop 192.168.0.10
phone (galaxy s2 - ubuntu touch with LAMP server) 192.168.0.14
router is 192.168.0.1.

I have installed dnsmasq on my phone where I have a LAMP server. My problem is that every time when I create new site on my server I have to add it to my /etc/hosts file on my laptop like that:

192.168.0.10  testingsite.dev

Basically I would like to have it done by dnsmasq automatically but I don't know how to set it up for the network. It works locally (I mean on the phone) but not for computers which belong to the network. Does anyone know how the /etc/dnsmasq.conf file should look like and do I need do something extra?

share|improve this question
    
Not sure why you put the dnsmasq on your phone instead of configuring your DNS of your network correctly. Did you check the dnsmasq documentation where the DNS-entries are read from? –  frlan Feb 23 at 21:23
    
Hi frlan, so that was why I said that probably I don't fully understand it. In dnsmasq.conf I added entry address=/.dev/127.0.0.1 and listen-address=127.0.0.1 I used documentation from that site help.ubuntu.com/community/Dnsmasq –  Rafal B Feb 23 at 22:02
    
Does anyone know how to achieve it what I need? I am not an expert in it so I would be grateful if someone could explain me how to do it. Thank you –  Rafal B Feb 24 at 19:31

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.