I am using 2 interfaces on my computer, eth0 grants access to the outside world and wlan0 is where the Access Point is set up.
My configuration is based on 2 networks 192.168.1.0 on eth0 and 10.0.0.0 on wlan0. I have a dhcp server that hands IP's for the network 10.0.0.0 and there, I have as DNS my ip of wlan0 (10.0.0.1) and 8.8.8.8.
When I connect with other device to the network, everything works fine, I have my IP address, I am redirected to the outside world from wlan0 to eth0 by iptables BUT I want to spoof the DNS. And here is my doubt. How do I do that¿? I have read about dnsmasq, working as both DHCP server and DNS, but on my config, what would be the interface of the DNS, wlan0¿?
I hope I made myself clear, if anyone can help me I would really appreciate, and I would also appreciate if someone could through some light with this. I am a little bit confused on how a DNS server on a wlan0 interface that has no access to the internet can act as DNS.