[Dnsmasq-discuss] What IP to use for ad/track blocking?

Maciej Soltysiak maciej at soltysiak.com
Wed Feb 12 08:16:57 GMT 2014


On Tue, Feb 11, 2014 at 3:40 PM, Chris Green <cl at isbd.net> wrote:
> I have a few entries in my dnsmasq.conf file to block some tracking
> sites, as follows:-
>
>     address=/www.addthis.com/127.0.0.1
>     address=/googlesyndication.com/127.0.0.1
>     address=/google-analytics.com/127.0.0.1
>     address=/googleadservices.com/127.0.0.1
>     address=/doubleclick.net/127.0.0.1
>     address=/finder.cox.net/127.0.0.1
Try to return NXDOMAIN so that the connection is not even made. Example:

server=/double-click.net/googlesyndication.com/google-analytics.com/

and so on. This makes dnsmasq say the domain doesn't exist.

> Chris Green
Maciej Soltysiak



More information about the Dnsmasq-discuss mailing list