neb/tools/diagnostics/domain-lookup.sh

7 lines
133 B
Bash
Raw Permalink Normal View History

2024-02-09 14:53:41 +01:00
#!/bin/sh
for target in $@; do
ip=$(dig $target +short)
printf "%-20s -> %20s (%s)\n" "$target" "$(dig -x $ip +short)" "$ip"
done