I'm trying to set a couple of DNS servers to resolve only specified domains. My first attempt was to run DNSmasq and create a manual list of domains/IPs, like so:
no-resolv
address=/whatsapp.com/192.155.212.202
But big services like google, twitter, whatsapp, facebook, etc.. use several IP ranges and distribute them in different ways (subdomains, protocols, geolocation, device type of the client, etc.), and this is causing some troubles.
I think the simplest approach would be to say something like:
Forward DNS queries of these domains to resolv.conf and block anything else
Is there a way to do it?