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