neb/tools/diagnostics/domain-lookup.sh
2024-02-09 14:53:41 +01:00

6 lines
133 B
Bash
Executable file

#!/bin/sh
for target in $@; do
ip=$(dig $target +short)
printf "%-20s -> %20s (%s)\n" "$target" "$(dig -x $ip +short)" "$ip"
done