You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2022. It is now read-only.
#Pull down the excellent blacklist file of advertisers
RUN wget -O /file 'http://pgl.yoyo.org/as/serverlist.php?hostformat=bindconfig&showintro=0&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D='
#Chop it up a bit for our use
RUN sed -i -e '/<[^>]*>/d' -e '/^\s*$/d' -e 's/{/IN {/g' -e 's/null/\/etc\/bind\/null/g' /file
#Copy it over to the container
RUN mv /file /etc/bind/blacklist
#Add it to the bottom of the named.conf
RUN echo "include \"/etc/bind/blacklist\";" >> /etc/bind/named.conf