View queue-status.pl
#!/usr/bin/perl | |
# | |
# $Id: queue-status.pl,v 1.3 2012/10/17 18:10:22 dan Exp $ | |
# | |
# Copyright (c) 2001-2006 DVL Software | |
# | |
use strict; | |
use warnings; |
View get_dns_blacklists.sh
#!/bin/sh | |
# "include: /var/unbound/etc/ad-blacklist.conf" in /var/unbound/etc/unbound.conf | |
# run script as daily cron | |
TMPFILE=$( mktemp get_dns_blacklists-XXXXXXXXX ) | |
trap 'rm -f $TMPFILE; exit 1' EXIT KILL INT QUIT TERM | |
( | |
ftp -VM -o- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep ^0.0.0.0 | awk '{ print $2 }' |