How to correctly use dnsmasq with apache?

0

So I've configured my dnsmasq+hostapd and everything works pretty nice. And I also started apache with two virtual hosts on 127.0.0.1 and 127.0.0.2. My goal is to redirect users from one site to my apache host1 and from another site to apache host2. I've tried

address=/site.com/127.0.0.1
address=/site2.com/127.0.0.2

But it looks like client tries to load its own 127.0.0.1 and 127.0.0.2. Am I even able to configure dnsmasq with apache to do such redirect?

desu

Posted 2016-04-07T11:38:10.017

Reputation: 123

Answers

0

After some time of googling I'm able to answer my own question. I've just added virtual interface wlan1mon:0 and configured its ip and mask like 10.0.0.2/24. Now everything works fine for me.

desu

Posted 2016-04-07T11:38:10.017

Reputation: 123