From 5be28bb01eb5abf9b200a9174ee165f14840562f Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 26 Apr 2026 13:53:38 +0000 Subject: [PATCH] check_pihole.sh check_pihole.sh angelegt --- check_pihole.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 check_pihole.sh diff --git a/check_pihole.sh b/check_pihole.sh new file mode 100644 index 0000000..678600a --- /dev/null +++ b/check_pihole.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Pi-hole service +systemctl is-active --quiet pihole-FTL || exit 1 + +# DNS functional test +dig google.com @127.0.0.1 +short | grep -q . || exit 1 + +# Blocking test (critical!) +dig doubleclick.net @127.0.0.1 +short | grep -q "0.0.0.0" || exit 1 + +exit 0 \ No newline at end of file