Magical Bulk Whois (No CAPTCHA!)
https://github.com/sickcodes/bulk-whois
pacman -S whois
yum install whois
apt install whois
git clone https://github.com/sickcodes/bulk-whois.git
cd bulk-whois
INPUT_FILE=domains.txt
mkdir -p ./output
while read -r WHO; do
WHO="${WHO//www\./}"
WHO=${WHO//${WHO#*\.*/}/}
WHO=$(basename "${WHO}")
echo "${WHO}"
{
whois "${WHO}" >> "output/${WHO}.txt" \
&& echo "$? ${WHO}" \
; } &
done < "${INPUT_FILE}"
Or use the enormous script!
#!/bin/bash
# Author: sickcodes
# Contact: https://twitter.com/sickcodes, https://github.com/sickcodes
# Copyright: sickcodes (C) 2022
# License: AGPLv3-or-later
# git clone https://github.com/sickcodes/bulk-whois.git
# cd bulk-whois
INPUT_FILE="${1}"
[ -z "$INPUT_FILE" ] && echo 'Usage: ./bulk-whois.sh domains.txt' && exit 1
mkdir -p ./output
while read -r WHO; do
WHO="${WHO//www\./}"
WHO=${WHO//${WHO#*\.*/}/}
WHO=$(basename "${WHO}")
echo "${WHO}"
{
whois "${WHO}" >> "output/${WHO}.txt" \
&& echo "$? ${WHO}" \
; } &
done < "${INPUT_FILE}"