#!/bin/sh curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts |\ perl -wnal -e ' if ( $F[0] eq "0.0.0.0" ) { print "local-zone: \"" . $F[1] . "\" redirect\nlocal-data: \"" . $F[1] . " A 0.0.0.0\""; } ' > ads.conf