2016-10-26 08:36:02 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-03-18 08:04:09 +00:00
|
|
|
# shellcheck disable=SC1090
|
|
|
|
|
2016-10-26 08:36:02 +00:00
|
|
|
# Pi-hole: A black hole for Internet advertisements
|
2017-02-22 17:55:20 +00:00
|
|
|
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
|
|
|
|
# Network-wide ad blocking via your own hardware.
|
|
|
|
#
|
2017-05-14 01:11:44 +00:00
|
|
|
# Whitelist and blacklist domains
|
2016-10-26 08:36:02 +00:00
|
|
|
#
|
2017-02-22 17:55:20 +00:00
|
|
|
# This file is copyright under the latest version of the EUPL.
|
|
|
|
# Please see LICENSE file for your rights under this license.
|
|
|
|
|
2017-05-14 01:11:44 +00:00
|
|
|
# Globals
|
2021-03-18 08:02:20 +00:00
|
|
|
piholeDir="/etc/pihole"
|
2021-03-18 08:01:22 +00:00
|
|
|
GRAVITYDB="${piholeDir}/gravity.db"
|
|
|
|
# Source pihole-FTL from install script
|
|
|
|
pihole_FTL="${piholeDir}/pihole-FTL.conf"
|
|
|
|
if [[ -f "${pihole_FTL}" ]]; then
|
2021-11-25 06:41:40 +00:00
|
|
|
source "${pihole_FTL}"
|
2021-03-18 08:01:22 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Set this only after sourcing pihole-FTL.conf as the gravity database path may
|
|
|
|
# have changed
|
|
|
|
gravityDBfile="${GRAVITYDB}"
|
2018-08-13 16:17:14 +00:00
|
|
|
|
2021-10-05 14:52:51 +00:00
|
|
|
noReloadRequested=false
|
2016-10-26 08:36:02 +00:00
|
|
|
addmode=true
|
|
|
|
verbose=true
|
2018-07-08 18:37:33 +00:00
|
|
|
wildcard=false
|
2019-04-25 13:01:13 +00:00
|
|
|
web=false
|
2016-10-26 08:36:02 +00:00
|
|
|
|
|
|
|
domList=()
|
|
|
|
|
2019-11-30 14:18:12 +00:00
|
|
|
typeId=""
|
2020-03-14 11:18:43 +00:00
|
|
|
comment=""
|
|
|
|
declare -i domaincount
|
|
|
|
domaincount=0
|
2021-10-05 14:52:51 +00:00
|
|
|
reload=false
|
2016-10-26 08:36:02 +00:00
|
|
|
|
2019-04-25 10:45:08 +00:00
|
|
|
colfile="/opt/pihole/COL_TABLE"
|
|
|
|
source ${colfile}
|
2017-06-21 11:49:05 +00:00
|
|
|
|
2019-12-02 17:27:32 +00:00
|
|
|
# IDs are hard-wired to domain interpretation in the gravity database scheme
|
|
|
|
# Clients (including FTL) will read them through the corresponding views
|
|
|
|
readonly whitelist="0"
|
|
|
|
readonly blacklist="1"
|
|
|
|
readonly regex_whitelist="2"
|
|
|
|
readonly regex_blacklist="3"
|
|
|
|
|
2019-11-30 16:26:26 +00:00
|
|
|
GetListnameFromTypeId() {
|
2019-12-02 17:27:32 +00:00
|
|
|
if [[ "$1" == "${whitelist}" ]]; then
|
2019-11-30 13:13:26 +00:00
|
|
|
echo "whitelist"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "$1" == "${blacklist}" ]]; then
|
2019-11-30 13:13:26 +00:00
|
|
|
echo "blacklist"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "$1" == "${regex_whitelist}" ]]; then
|
2019-12-01 12:50:24 +00:00
|
|
|
echo "regex whitelist"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "$1" == "${regex_blacklist}" ]]; then
|
2019-12-01 12:50:24 +00:00
|
|
|
echo "regex blacklist"
|
2019-11-30 13:13:26 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-11-30 16:26:26 +00:00
|
|
|
GetListParamFromTypeId() {
|
2019-12-02 17:27:32 +00:00
|
|
|
if [[ "${typeId}" == "${whitelist}" ]]; then
|
2019-11-30 16:26:26 +00:00
|
|
|
echo "w"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "${typeId}" == "${blacklist}" ]]; then
|
2019-11-30 16:26:26 +00:00
|
|
|
echo "b"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "${typeId}" == "${regex_whitelist}" && "${wildcard}" == true ]]; then
|
2019-11-30 16:26:26 +00:00
|
|
|
echo "-white-wild"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "${typeId}" == "${regex_whitelist}" ]]; then
|
2019-12-01 12:44:48 +00:00
|
|
|
echo "-white-regex"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "${typeId}" == "${regex_blacklist}" && "${wildcard}" == true ]]; then
|
2019-12-01 12:45:22 +00:00
|
|
|
echo "-wild"
|
2019-12-02 17:27:32 +00:00
|
|
|
elif [[ "${typeId}" == "${regex_blacklist}" ]]; then
|
2019-12-01 12:45:06 +00:00
|
|
|
echo "-regex"
|
2018-07-20 19:42:11 +00:00
|
|
|
fi
|
2019-11-30 16:26:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
helpFunc() {
|
|
|
|
local listname param
|
|
|
|
|
|
|
|
listname="$(GetListnameFromTypeId "${typeId}")"
|
|
|
|
param="$(GetListParamFromTypeId)"
|
2017-05-14 01:11:44 +00:00
|
|
|
|
2017-05-16 00:18:32 +00:00
|
|
|
echo "Usage: pihole -${param} [options] <domain> <domain2 ...>
|
|
|
|
Example: 'pihole -${param} site.com', or 'pihole -${param} site1.com site2.com'
|
2019-11-30 16:26:26 +00:00
|
|
|
${listname^} one or more domains
|
2017-05-14 01:11:44 +00:00
|
|
|
|
2017-05-16 00:23:53 +00:00
|
|
|
Options:
|
2019-11-30 16:26:26 +00:00
|
|
|
-d, --delmode Remove domain(s) from the ${listname}
|
|
|
|
-nr, --noreload Update ${listname} without reloading the DNS server
|
2017-05-14 01:11:44 +00:00
|
|
|
-q, --quiet Make output less verbose
|
|
|
|
-h, --help Show this help dialog
|
2019-11-30 16:26:26 +00:00
|
|
|
-l, --list Display all your ${listname}listed domains
|
2021-12-06 19:27:13 +00:00
|
|
|
--nuke Removes all entries in a list
|
2021-12-21 21:10:56 +00:00
|
|
|
--comment \"text\" Add a comment to the domain. If adding multiple domains the same comment will be used for all"
|
2017-05-14 15:43:20 +00:00
|
|
|
|
2017-05-16 00:18:32 +00:00
|
|
|
exit 0
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
2019-11-30 16:26:26 +00:00
|
|
|
ValidateDomain() {
|
2018-07-20 19:42:11 +00:00
|
|
|
# Convert to lowercase
|
|
|
|
domain="${1,,}"
|
2022-07-06 17:27:16 +00:00
|
|
|
local str validDomain
|
2018-07-20 19:42:11 +00:00
|
|
|
|
|
|
|
# Check validity of domain (don't check for regex entries)
|
2022-07-06 17:27:16 +00:00
|
|
|
if [[ ( "${typeId}" == "${regex_blacklist}" || "${typeId}" == "${regex_whitelist}" ) && "${wildcard}" == false ]]; then
|
|
|
|
validDomain="${domain}"
|
|
|
|
else
|
|
|
|
# Check max length
|
|
|
|
if [[ "${#domain}" -le 253 ]]; then
|
2019-12-21 11:15:18 +00:00
|
|
|
validDomain=$(grep -P "^((-|_)*[a-z\\d]((-|_)*[a-z\\d])*(-|_)*)(\\.(-|_)*([a-z\\d]((-|_)*[a-z\\d])*))*$" <<< "${domain}") # Valid chars check
|
|
|
|
validDomain=$(grep -P "^[^\\.]{1,63}(\\.[^\\.]{1,63})*$" <<< "${validDomain}") # Length of each label
|
2022-07-06 17:27:16 +00:00
|
|
|
# set error string
|
|
|
|
str="is not a valid argument or domain name!"
|
|
|
|
else
|
|
|
|
validDomain=
|
|
|
|
str="is too long!"
|
|
|
|
|
2018-07-20 19:42:11 +00:00
|
|
|
fi
|
|
|
|
fi
|
2017-05-14 01:11:44 +00:00
|
|
|
|
2018-07-20 19:42:11 +00:00
|
|
|
if [[ -n "${validDomain}" ]]; then
|
2020-03-14 11:18:43 +00:00
|
|
|
domList=("${domList[@]}" "${validDomain}")
|
2018-06-29 03:21:01 +00:00
|
|
|
else
|
2022-07-06 17:27:16 +00:00
|
|
|
echo -e " ${CROSS} ${domain} ${str}"
|
2018-06-29 03:21:01 +00:00
|
|
|
fi
|
2020-03-14 11:18:43 +00:00
|
|
|
|
|
|
|
domaincount=$((domaincount+1))
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
2019-04-25 10:10:42 +00:00
|
|
|
ProcessDomainList() {
|
2018-07-20 19:42:11 +00:00
|
|
|
for dom in "${domList[@]}"; do
|
2019-04-25 10:30:38 +00:00
|
|
|
# Format domain into regex filter if requested
|
|
|
|
if [[ "${wildcard}" == true ]]; then
|
2021-01-11 16:05:17 +00:00
|
|
|
dom="(\\.|^)${dom//\./\\.}$"
|
2019-04-25 10:30:38 +00:00
|
|
|
fi
|
|
|
|
|
2019-04-26 15:06:01 +00:00
|
|
|
# Logic: If addmode then add to desired list and remove from the other;
|
|
|
|
# if delmode then remove from desired list but do not add to the other
|
2018-07-20 19:42:11 +00:00
|
|
|
if ${addmode}; then
|
2019-11-30 14:18:12 +00:00
|
|
|
AddDomain "${dom}"
|
2018-07-20 19:42:11 +00:00
|
|
|
else
|
2019-11-30 14:18:12 +00:00
|
|
|
RemoveDomain "${dom}"
|
2018-07-20 19:42:11 +00:00
|
|
|
fi
|
2021-11-25 06:41:40 +00:00
|
|
|
done
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AddDomain() {
|
2019-11-30 14:18:12 +00:00
|
|
|
local domain num requestedListname existingTypeId existingListname
|
2019-04-26 18:54:01 +00:00
|
|
|
domain="$1"
|
2018-07-20 19:42:11 +00:00
|
|
|
|
2019-04-25 10:10:42 +00:00
|
|
|
# Is the domain in the list we want to add it to?
|
2023-12-09 22:06:50 +00:00
|
|
|
num="$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT COUNT(*) FROM domainlist WHERE domain = '${domain}';")"
|
2019-11-30 16:26:26 +00:00
|
|
|
requestedListname="$(GetListnameFromTypeId "${typeId}")"
|
2018-07-20 19:42:11 +00:00
|
|
|
|
2019-04-26 15:06:01 +00:00
|
|
|
if [[ "${num}" -ne 0 ]]; then
|
2023-12-09 22:06:50 +00:00
|
|
|
existingTypeId="$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT type FROM domainlist WHERE domain = '${domain}';")"
|
2021-11-25 06:41:40 +00:00
|
|
|
if [[ "${existingTypeId}" == "${typeId}" ]]; then
|
|
|
|
if [[ "${verbose}" == true ]]; then
|
|
|
|
echo -e " ${INFO} ${1} already exists in ${requestedListname}, no need to add!"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
existingListname="$(GetListnameFromTypeId "${existingTypeId}")"
|
2023-12-09 22:06:50 +00:00
|
|
|
pihole-FTL sqlite3 -ni "${gravityDBfile}" "UPDATE domainlist SET type = ${typeId} WHERE domain='${domain}';"
|
2021-11-25 06:41:40 +00:00
|
|
|
if [[ "${verbose}" == true ]]; then
|
|
|
|
echo -e " ${INFO} ${1} already exists in ${existingListname}, it has been moved to ${requestedListname}!"
|
|
|
|
fi
|
2019-11-30 13:13:26 +00:00
|
|
|
fi
|
2021-11-25 06:41:40 +00:00
|
|
|
return
|
2017-05-14 01:11:44 +00:00
|
|
|
fi
|
2019-04-26 15:06:01 +00:00
|
|
|
|
|
|
|
# Domain not found in the table, add it!
|
|
|
|
if [[ "${verbose}" == true ]]; then
|
2019-11-30 14:18:12 +00:00
|
|
|
echo -e " ${INFO} Adding ${domain} to the ${requestedListname}..."
|
2019-04-26 15:06:01 +00:00
|
|
|
fi
|
|
|
|
reload=true
|
2019-04-26 16:15:53 +00:00
|
|
|
# Insert only the domain here. The enabled and date_added fields will be filled
|
|
|
|
# with their default values (enabled = true, date_added = current timestamp)
|
2020-03-14 11:18:43 +00:00
|
|
|
if [[ -z "${comment}" ]]; then
|
2023-12-09 22:06:50 +00:00
|
|
|
pihole-FTL sqlite3 -ni "${gravityDBfile}" "INSERT INTO domainlist (domain,type) VALUES ('${domain}',${typeId});"
|
2020-03-14 11:18:43 +00:00
|
|
|
else
|
|
|
|
# also add comment when variable has been set through the "--comment" option
|
2023-12-09 22:06:50 +00:00
|
|
|
pihole-FTL sqlite3 -ni "${gravityDBfile}" "INSERT INTO domainlist (domain,type,comment) VALUES ('${domain}',${typeId},'${comment}');"
|
2020-03-14 11:18:43 +00:00
|
|
|
fi
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RemoveDomain() {
|
2019-11-30 14:18:12 +00:00
|
|
|
local domain num requestedListname
|
2019-04-26 18:54:01 +00:00
|
|
|
domain="$1"
|
2019-04-25 10:10:42 +00:00
|
|
|
|
|
|
|
# Is the domain in the list we want to remove it from?
|
2023-12-09 22:06:50 +00:00
|
|
|
num="$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT COUNT(*) FROM domainlist WHERE domain = '${domain}' AND type = ${typeId};")"
|
2019-11-30 14:18:12 +00:00
|
|
|
|
2019-11-30 16:26:26 +00:00
|
|
|
requestedListname="$(GetListnameFromTypeId "${typeId}")"
|
2019-04-25 10:10:42 +00:00
|
|
|
|
2019-04-26 15:06:01 +00:00
|
|
|
if [[ "${num}" -eq 0 ]]; then
|
2021-11-25 06:41:40 +00:00
|
|
|
if [[ "${verbose}" == true ]]; then
|
|
|
|
echo -e " ${INFO} ${domain} does not exist in ${requestedListname}, no need to remove!"
|
|
|
|
fi
|
|
|
|
return
|
2019-04-25 10:10:42 +00:00
|
|
|
fi
|
2019-04-26 15:06:01 +00:00
|
|
|
|
|
|
|
# Domain found in the table, remove it!
|
|
|
|
if [[ "${verbose}" == true ]]; then
|
2019-11-30 14:18:12 +00:00
|
|
|
echo -e " ${INFO} Removing ${domain} from the ${requestedListname}..."
|
2019-04-26 15:06:01 +00:00
|
|
|
fi
|
|
|
|
reload=true
|
|
|
|
# Remove it from the current list
|
2023-12-09 22:06:50 +00:00
|
|
|
pihole-FTL sqlite3 -ni "${gravityDBfile}" "DELETE FROM domainlist WHERE domain = '${domain}' AND type = ${typeId};"
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Displaylist() {
|
2019-11-30 14:18:12 +00:00
|
|
|
local count num_pipes domain enabled status nicedate requestedListname
|
2019-04-25 10:10:42 +00:00
|
|
|
|
2019-11-30 16:26:26 +00:00
|
|
|
requestedListname="$(GetListnameFromTypeId "${typeId}")"
|
2023-12-09 22:06:50 +00:00
|
|
|
data="$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT domain,enabled,date_modified FROM domainlist WHERE type = ${typeId};" 2> /dev/null)"
|
2019-04-25 10:10:42 +00:00
|
|
|
|
|
|
|
if [[ -z $data ]]; then
|
2019-07-22 17:35:16 +00:00
|
|
|
echo -e "Not showing empty list"
|
2019-04-25 10:10:42 +00:00
|
|
|
else
|
2019-11-30 14:18:12 +00:00
|
|
|
echo -e "Displaying ${requestedListname}:"
|
2018-07-20 19:42:11 +00:00
|
|
|
count=1
|
2019-04-25 10:10:42 +00:00
|
|
|
while IFS= read -r line
|
|
|
|
do
|
2019-04-25 10:30:38 +00:00
|
|
|
# Count number of pipes seen in this line
|
|
|
|
# This is necessary because we can only detect the pipe separating the fields
|
|
|
|
# from the end backwards as the domain (which is the first field) may contain
|
|
|
|
# pipe symbols as they are perfectly valid regex filter control characters
|
|
|
|
num_pipes="$(grep -c "^" <<< "$(grep -o "|" <<< "${line}")")"
|
|
|
|
|
2019-04-25 10:45:08 +00:00
|
|
|
# Extract domain and enabled status based on the obtained number of pipe characters
|
2019-05-02 15:11:39 +00:00
|
|
|
domain="$(cut -d'|' -f"-$((num_pipes-1))" <<< "${line}")"
|
|
|
|
enabled="$(cut -d'|' -f"$((num_pipes))" <<< "${line}")"
|
|
|
|
datemod="$(cut -d'|' -f"$((num_pipes+1))" <<< "${line}")"
|
2019-04-25 10:45:08 +00:00
|
|
|
|
|
|
|
# Translate boolean status into human readable string
|
2019-04-25 10:10:42 +00:00
|
|
|
if [[ "${enabled}" -eq 1 ]]; then
|
|
|
|
status="enabled"
|
|
|
|
else
|
|
|
|
status="disabled"
|
|
|
|
fi
|
2019-04-25 10:30:38 +00:00
|
|
|
|
2019-04-26 15:07:16 +00:00
|
|
|
# Get nice representation of numerical date stored in database
|
2019-05-02 15:11:39 +00:00
|
|
|
nicedate=$(date --rfc-2822 -d "@${datemod}")
|
2019-04-26 15:07:16 +00:00
|
|
|
|
2019-05-02 15:11:39 +00:00
|
|
|
echo " ${count}: ${domain} (${status}, last modified ${nicedate})"
|
2018-07-20 19:42:11 +00:00
|
|
|
count=$((count+1))
|
2019-04-25 10:10:42 +00:00
|
|
|
done <<< "${data}"
|
2017-06-21 11:49:05 +00:00
|
|
|
fi
|
2019-04-26 15:13:36 +00:00
|
|
|
exit 0;
|
2016-10-26 08:36:02 +00:00
|
|
|
}
|
|
|
|
|
2017-10-07 15:29:47 +00:00
|
|
|
NukeList() {
|
2023-12-09 22:06:50 +00:00
|
|
|
count=$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT COUNT(1) FROM domainlist WHERE type = ${typeId};")
|
2021-10-05 14:52:51 +00:00
|
|
|
listname="$(GetListnameFromTypeId "${typeId}")"
|
2020-11-16 23:31:35 +00:00
|
|
|
if [ "$count" -gt 0 ];then
|
2023-12-09 22:06:50 +00:00
|
|
|
pihole-FTL sqlite3 -ni "${gravityDBfile}" "DELETE FROM domainlist WHERE type = ${typeId};"
|
2020-11-16 23:31:35 +00:00
|
|
|
echo " ${TICK} Removed ${count} domain(s) from the ${listname}"
|
|
|
|
else
|
|
|
|
echo " ${INFO} ${listname} already empty. Nothing to do!"
|
2021-10-05 14:52:51 +00:00
|
|
|
fi
|
2020-05-12 17:59:19 +00:00
|
|
|
exit 0;
|
2017-10-07 15:29:47 +00:00
|
|
|
}
|
|
|
|
|
2020-03-14 11:18:43 +00:00
|
|
|
GetComment() {
|
|
|
|
comment="$1"
|
|
|
|
if [[ "${comment}" =~ [^a-zA-Z0-9_\#:/\.,\ -] ]]; then
|
2021-11-25 06:41:40 +00:00
|
|
|
echo " ${CROSS} Found invalid characters in domain comment!"
|
|
|
|
exit
|
2020-03-14 11:18:43 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
while (( "$#" )); do
|
|
|
|
case "${1}" in
|
2019-11-30 14:18:12 +00:00
|
|
|
"-w" | "whitelist" ) typeId=0;;
|
|
|
|
"-b" | "blacklist" ) typeId=1;;
|
|
|
|
"--white-regex" | "white-regex" ) typeId=2;;
|
|
|
|
"--white-wild" | "white-wild" ) typeId=2; wildcard=true;;
|
|
|
|
"--wild" | "wildcard" ) typeId=3; wildcard=true;;
|
|
|
|
"--regex" | "regex" ) typeId=3;;
|
2021-10-05 14:52:51 +00:00
|
|
|
"-nr"| "--noreload" ) noReloadRequested=true;;
|
2018-07-20 19:42:11 +00:00
|
|
|
"-d" | "--delmode" ) addmode=false;;
|
|
|
|
"-q" | "--quiet" ) verbose=false;;
|
|
|
|
"-h" | "--help" ) helpFunc;;
|
|
|
|
"-l" | "--list" ) Displaylist;;
|
|
|
|
"--nuke" ) NukeList;;
|
2019-04-25 13:01:13 +00:00
|
|
|
"--web" ) web=true;;
|
2020-03-14 11:18:43 +00:00
|
|
|
"--comment" ) GetComment "${2}"; shift;;
|
|
|
|
* ) ValidateDomain "${1}";;
|
2018-07-20 19:42:11 +00:00
|
|
|
esac
|
2020-03-14 11:18:43 +00:00
|
|
|
shift
|
2016-10-26 08:36:02 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
2020-03-14 11:18:43 +00:00
|
|
|
if [[ ${domaincount} == 0 ]]; then
|
2018-07-20 19:42:11 +00:00
|
|
|
helpFunc
|
2016-10-26 08:36:02 +00:00
|
|
|
fi
|
|
|
|
|
2019-04-25 10:10:42 +00:00
|
|
|
ProcessDomainList
|
2016-10-26 08:36:02 +00:00
|
|
|
|
2019-04-25 13:01:13 +00:00
|
|
|
# Used on web interface
|
|
|
|
if $web; then
|
2021-11-25 06:41:40 +00:00
|
|
|
echo "DONE"
|
2019-04-25 13:01:13 +00:00
|
|
|
fi
|
|
|
|
|
2021-10-05 14:52:51 +00:00
|
|
|
if [[ ${reload} == true && ${noReloadRequested} == false ]]; then
|
2019-12-11 21:47:46 +00:00
|
|
|
pihole restartdns reload-lists
|
2016-10-26 08:36:02 +00:00
|
|
|
fi
|