I have a raspberry pi setup with dnsmasq, hostapd and apache. I am trying to get dnsmasq to point to virtual hosts so I can make a portable intranet with multiple sites. I have the same setup at home, but with the router and access point wifi on a different machine to the apache server, and that works fine.

But with the single machine setup any url that I put in for a site on the local network just returns

  • If you don't want dnsmasq to read /etc/hosts no-hosts in /etc/dnsmasq.conf – MatsK Sep 13 '17 at 5:56
  • Thank you, that fixed it. Onwards to portable intra-net! – James Sep 13 '17 at 6:21
  • Nice, I added my comment as a answer so this Q can be closed. – MatsK Sep 13 '17 at 7:53

If you don't want dnsmasq to read /etc/hosts add no-hosts to /etc/dnsmasq.conf

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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