#!/bin/bash cat /etc/dnsmasq.head > /etc/dnsmasq.conf wget -qO- "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext"|sed 's/127\.0\.0\.1/192.168.1.2/g' >> /etc/dnsmasq.conf /etc/init.d/dnsmasq restart