0

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 127.0.0.1.

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

1 Answer 1

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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