Block Ad Hosts with DNSmasq

Introduction
This nifty little script will help you block ad servers using DNSmasq. There are many different ways to go about doing this, but most are too complex for a simple setup.

Usage
First chmod this file to make it executable:

After you have configured the script for your setup, you can either decide to run it whenever you want or let the cron daemon handle it.