From 6ab87422a19bf33660dd98ef181656b034a31dc1 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 10 Jul 2025 15:47:09 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index eb027038..27b8c3ca 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1893,8 +1893,9 @@ function setup_clickhouse() { if ! command -v clickhouse >/dev/null; then msg_info "Setup ClickHouse" - if ! getent ahosts packages.clickhouse.com >/dev/null; then - msg_error "DNS resolution failed – possibly blocked (AdGuard, Pi-hole)" + if ! dig +short packages.clickhouse.com | grep -qE '^[0-9a-f:.]+$'; then + msg_error "DNS blocked: packages.clickhouse.com" + echo "💡 Likely blocked by AdGuard, Pi-hole or similar" return 1 fi