Skip to content

Instantly share code, notes, and snippets.

@tyzbit
Created November 29, 2023 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyzbit/984cbaa32a872c079ff7999688e2f83e to your computer and use it in GitHub Desktop.
Save tyzbit/984cbaa32a872c079ff7999688e2f83e to your computer and use it in GitHub Desktop.
Simple scripts to check domain availability (from the list of cloudflare's TLDs https://www.cloudflare.com/tld-policies/)
#!/bin/bash
cloudflare_supported_tlds=(
academy
agency
app
blog
cam
camera
center
chat
cloud
co
com
community
computer
consulting
contact
creditcard
data
dev
digital
directory
download
education
email
engineer
equipment
esq
events
expert
finance
financial
foo
games
health
hosting
information
institute
international
internet
io
management
market
marketing
media
network
new
nexus
online
organization
page
partnership
phd
photography
prof
radio
realty
repair
research
science
security
services
site
software
solutions
space
storage
streaming
studio
support
tech
technology
university
video
web
website
work
world
)
if [[ "${1}x" == "x" ]]; then
echo "Usage: $0 [domain name (no tld)]"
exit 1
fi
function isavailable() {
whois "${1}" 2>/dev/null | grep -iq 'Registrant' && return 1 || return 0
}
function printifavailable() {
isavailable $1 && echo "$1"
}
export -f printifavailable isavailable
declare -a domains_to_check
for tld in "${cloudflare_supported_tlds[@]}"; do
domains_to_check+=("${1}.${tld}")
done
parallel printifavailable ::: "${domains_to_check[@]}"
#!/bin/bash
cloudflare_supported_tlds=(
"academy"
"accountant"
"accountants"
"actor"
"agency"
"apartments"
"app"
"associates"
"attorney"
"auction"
"band"
"bar"
"bargains"
"beer"
"bet"
"bid"
"bike"
"bingo"
"biz"
"black"
"blog"
"blue"
"boo"
"boston"
"boutique"
"broker"
"builders"
"business"
"cab"
"cafe"
"cam"
"camera"
"camp"
"capital"
"cards"
"care"
"careers"
"casa"
"cash"
"casino"
"catering"
"cc"
"center"
"ceo"
"chat"
"cheap"
"church"
"city"
"claims"
"cleaning"
"clinic"
"clothing"
"cloud"
"club"
"co.uk"
"co"
"coach"
"codes"
"coffee"
"college"
"com.co"
"com"
"community"
"company"
"compare"
"computer"
"condos"
"construction"
"consulting"
"contact"
"contractors"
"cooking"
"cool"
"coupons"
"credit"
"creditcard"
"cricket"
"cruises"
"dad"
"dance"
"date"
"dating"
"day"
"deals"
"degree"
"delivery"
"democrat"
"dental"
"dentist"
"design"
"dev"
"diamonds"
"digital"
"direct"
"directory"
"discount"
"doctor"
"dog"
"domains"
"download"
"education"
"email"
"energy"
"engineer"
"engineering"
"enterprises"
"equipment"
"esq"
"estate"
"events"
"exchange"
"expert"
"exposed"
"express"
"fail"
"faith"
"family"
"fans"
"farm"
"fashion"
"finance"
"financial"
"fish"
"fishing"
"fit"
"fitness"
"flights"
"florist"
"fm"
"foo"
"football"
"forex"
"forsale"
"foundation"
"fun"
"fund"
"furniture"
"futbol"
"fyi"
"gallery"
"games"
"garden"
"gifts"
"gives"
"glass"
"gmbh"
"gold"
"golf"
"graphics"
"gratis"
"green"
"gripe"
"group"
"guide"
"guru"
"haus"
"health"
"healthcare"
"hockey"
"holdings"
"holiday"
"horse"
"hospital"
"host"
"house"
"how"
"immo"
"immobilien"
"industries"
"info"
"ink"
"institute"
"insure"
"international"
"investments"
"io"
"irish"
"jetzt"
"jewelry"
"kaufen"
"kim"
"kitchen"
"land"
"lawyer"
"lease"
"legal"
"lgbt"
"life"
"lighting"
"limited"
"limo"
"live"
"loan"
"loans"
"love"
"ltd"
"luxe"
"maison"
"management"
"market"
"marketing"
"markets"
"mba"
"me.uk"
"me"
"media"
"memorial"
"men"
"miami"
"mobi"
"moda"
"money"
"mortgage"
"mov"
"movie"
"net.co"
"net.uk"
"net"
"network"
"new"
"news"
"nexus"
"ninja"
"nom.co"
"observer"
"online"
"org.uk"
"org"
"page"
"partners"
"parts"
"party"
"pet"
"phd"
"photography"
"photos"
"pictures"
"pink"
"pizza"
"place"
"plumbing"
"plus"
"press"
"pro"
"productions"
"prof"
"promo"
"properties"
"pub"
"racing"
"radio.fm"
"realty"
"recipes"
"red"
"rehab"
"reise"
"reisen"
"rent"
"rentals"
"repair"
"report"
"republican"
"rest"
"restaurant"
"review"
"reviews"
"rip"
"rocks"
"rodeo"
"rsvp"
"run"
"sale"
"salon"
"sarl"
"school"
"schule"
"science"
"security"
"select"
"services"
"shoes"
"shopping"
"show"
"singles"
"site"
"soccer"
"social"
"software"
"solar"
"solutions"
"soy"
"space"
"storage"
"store"
"stream"
"studio"
"style"
"supplies"
"supply"
"support"
"surf"
"surgery"
"systems"
"tax"
"taxi"
"team"
"tech"
"technology"
"tennis"
"theater"
"theatre"
"tienda"
"tips"
"tires"
"today"
"tools"
"tours"
"town"
"toys"
"trade"
"trading"
"training"
"tv"
"uk"
"university"
"us"
"vacations"
"ventures"
"vet"
"viajes"
"video"
"villas"
"vin"
"vip"
"vision"
"vodka"
"voyage"
"watch"
"webcam"
"website"
"wedding"
"wiki"
"win"
"wine"
"work"
"works"
"world"
"wtf"
"xyz"
"yoga"
"zone"
)
if [[ "${1}x" == "x" ]]; then
echo "Usage: $0 [domain name (no tld)]"
exit 1
fi
function isavailable() {
whois "${1}" 2>/dev/null | grep -iq 'Registrant' && return 1 || return 0
}
function printifavailable() {
isavailable $1 && echo "$1"
}
export -f printifavailable isavailable
declare -a domains_to_check
for tld in "${cloudflare_supported_tlds[@]}"; do
domains_to_check+=("${1}.${tld}")
done
parallel printifavailable ::: "${domains_to_check[@]}"
#!/bin/bash
cloudflare_supported_tlds=(
"academy"
"accountant"
"accountants"
"actor"
"agency"
"apartments"
"app"
"associates"
"attorney"
"auction"
"band"
"bar"
"bargains"
"beer"
"bet"
"bid"
"bike"
"bingo"
"biz"
"black"
"blog"
"blue"
"boo"
"boston"
"boutique"
"broker"
"builders"
"business"
"cab"
"cafe"
"cam"
"camera"
"camp"
"capital"
"cards"
"care"
"careers"
"casa"
"cash"
"casino"
"catering"
"cc"
"center"
"ceo"
"chat"
"cheap"
"church"
"city"
"claims"
"cleaning"
"clinic"
"clothing"
"cloud"
"club"
"co.uk"
"co"
"coach"
"codes"
"coffee"
"college"
"com.co"
"com"
"community"
"company"
"compare"
"computer"
"condos"
"construction"
"consulting"
"contact"
"contractors"
"cooking"
"cool"
"coupons"
"credit"
"creditcard"
"cricket"
"cruises"
"dad"
"dance"
"date"
"dating"
"day"
"deals"
"degree"
"delivery"
"democrat"
"dental"
"dentist"
"design"
"dev"
"diamonds"
"digital"
"direct"
"directory"
"discount"
"doctor"
"dog"
"domains"
"download"
"education"
"email"
"energy"
"engineer"
"engineering"
"enterprises"
"equipment"
"esq"
"estate"
"events"
"exchange"
"expert"
"exposed"
"express"
"fail"
"faith"
"family"
"fans"
"farm"
"fashion"
"finance"
"financial"
"fish"
"fishing"
"fit"
"fitness"
"flights"
"florist"
"fm"
"foo"
"football"
"forex"
"forsale"
"foundation"
"fun"
"fund"
"furniture"
"futbol"
"fyi"
"gallery"
"games"
"garden"
"gifts"
"gives"
"glass"
"gmbh"
"gold"
"golf"
"graphics"
"gratis"
"green"
"gripe"
"group"
"guide"
"guru"
"haus"
"health"
"healthcare"
"hockey"
"holdings"
"holiday"
"horse"
"hospital"
"host"
"house"
"how"
"immo"
"immobilien"
"industries"
"info"
"ink"
"institute"
"insure"
"international"
"investments"
"io"
"irish"
"jetzt"
"jewelry"
"kaufen"
"kim"
"kitchen"
"land"
"lawyer"
"lease"
"legal"
"lgbt"
"life"
"lighting"
"limited"
"limo"
"live"
"loan"
"loans"
"love"
"ltd"
"luxe"
"maison"
"management"
"market"
"marketing"
"markets"
"mba"
"me.uk"
"me"
"media"
"memorial"
"men"
"miami"
"mobi"
"moda"
"money"
"mortgage"
"mov"
"movie"
"net.co"
"net.uk"
"net"
"network"
"new"
"news"
"nexus"
"ninja"
"nom.co"
"observer"
"online"
"org.uk"
"org"
"page"
"partners"
"parts"
"party"
"pet"
"phd"
"photography"
"photos"
"pictures"
"pink"
"pizza"
"place"
"plumbing"
"plus"
"press"
"pro"
"productions"
"prof"
"promo"
"properties"
"pub"
"racing"
"radio.fm"
"realty"
"recipes"
"red"
"rehab"
"reise"
"reisen"
"rent"
"rentals"
"repair"
"report"
"republican"
"rest"
"restaurant"
"review"
"reviews"
"rip"
"rocks"
"rodeo"
"rsvp"
"run"
"sale"
"salon"
"sarl"
"school"
"schule"
"science"
"security"
"select"
"services"
"shoes"
"shopping"
"show"
"singles"
"site"
"soccer"
"social"
"software"
"solar"
"solutions"
"soy"
"space"
"storage"
"store"
"stream"
"studio"
"style"
"supplies"
"supply"
"support"
"surf"
"surgery"
"systems"
"tax"
"taxi"
"team"
"tech"
"technology"
"tennis"
"theater"
"theatre"
"tienda"
"tips"
"tires"
"today"
"tools"
"tours"
"town"
"toys"
"trade"
"trading"
"training"
"tv"
"uk"
"university"
"us"
"vacations"
"ventures"
"vet"
"viajes"
"video"
"villas"
"vin"
"vip"
"vision"
"vodka"
"voyage"
"watch"
"webcam"
"website"
"wedding"
"wiki"
"win"
"wine"
"work"
"works"
"world"
"wtf"
"xyz"
"yoga"
"zone"
)
if [[ "${1}x" == "x" ]]; then
echo "Usage: $0 [domain name (no tld)]"
exit 1
fi
function isavailable() {
whois "${1}" 2>/dev/null | grep -iq 'Registrant' && return 1 || return 0
}
function printifunavailable() {
isavailable $1 || echo "$1"
}
export -f printifunavailable isavailable
declare -a domains_to_check
for tld in "${cloudflare_supported_tlds[@]}"; do
domains_to_check+=("${1}.${tld}")
done
parallel printifunavailable ::: "${domains_to_check[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment