On 05/29/2017 07:18 AM, Jorge Bastos wrote:
Howdy,

I'd like to change the result of some dns query's, in particular, I want to change the result of the query for FACEBOOK.COM.

Is this possible with dnsmasq?

absolutely...

in your dnsmasq.conf file, add the following lines...

# block these domains with NXDOMAIN
server=/example.com/
server=/facebook.com/
server=/fbcdn.net/
server=/fbcdn.com/
server=/facebook.net/


and you should look in the manual about the use of this config verb so that you understand it more fully than this simple example can provide ;)

--
 NOTE: No off-list assistance is given without prior approval.
       *Please keep mailing list traffic on the list unless*
       *a signed and pre-paid contract is in effect with us.*

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to