Dnsmasq: Redirect entire domain to localhost only for specific MAC Addresses

dnsmasqdomain-name-system

I'd like to redirect example.com to the local host, but only for specific MAC addresses.
Obviously, specifying

address=/example.com/127.0.0.1

in dnsmasq.conf does this for everyone. Is there any way that say MAC1 will be redirected to localhost, while MAC2 will get the correct IP address of example.com?

Best Answer

Short answer: no. Dnsmasq does not have that kind of functionality. The --address setting applies globally.

Related Topic