From 959721388e2b2ed7996335444978d06fb388276c Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 9 Feb 2024 14:53:41 +0100 Subject: [PATCH] feat: diagnostic tool --- tools/diagnostics/domain-lookup.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/diagnostics/domain-lookup.sh diff --git a/tools/diagnostics/domain-lookup.sh b/tools/diagnostics/domain-lookup.sh new file mode 100755 index 0000000..4497bac --- /dev/null +++ b/tools/diagnostics/domain-lookup.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +for target in $@; do + ip=$(dig $target +short) + printf "%-20s -> %20s (%s)\n" "$target" "$(dig -x $ip +short)" "$ip" +done