From 7e34a4c6bd97cd430865bd413bda5e3299fea0ce Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 28 Jul 2023 22:52:30 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=20nslookup/dig=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index 53f956a..07842ad 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -463,8 +463,12 @@ install_pkg() { pkg="bind-tools" elif is_in_arch; then pkg="bind" + elif command -v yum || command -v dnf; then + pkg="bind-utils" + elif command -v apt; then + pkg="bind9-dnsutils" else - pkg="bind*-*utils" + error "Can't install nslookup / dig" fi ;; *) pkg=$cmd ;;