This commit is contained in:
tuend-work
2025-11-12 23:10:39 +07:00
parent bd58de709f
commit 2e16431888
953 changed files with 57002 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/sh
DIG=/usr/bin/dig
WHOIS=/usr/bin/whois
if [ $# -ne 1 ]; then
echo "Usage:";
echo " $0 ip";
exit 1;
fi
if [ ! -x "$DIG" ]; then
echo "Cannot find $DIG or it's not executable.";
exit 2;
else
$DIG -x "$1" +noshort 2>&1
fi
if [ -x "$WHOIS" ]; then
$WHOIS "$1" 2>&1
fi
exit 0;