Skip to content

Instantly share code, notes, and snippets.

@bhuiyanmobasshir94
Created June 5, 2023 04:37
Show Gist options
  • Save bhuiyanmobasshir94/9d272ad2d3ff77c42185b2d32d68092c to your computer and use it in GitHub Desktop.
Save bhuiyanmobasshir94/9d272ad2d3ff77c42185b2d32d68092c to your computer and use it in GitHub Desktop.
import socket
def check_domain_exists(domain):
try:
socket.gethostbyname(domain)
return True
except socket.gaierror:
return False
# Example usage
# domain_name = "mobasshirbhuiya.com"
# if check_domain_exists(domain_name):
# print(f"The domain '{domain_name}' exists.")
# else:
# print(f"The domain '{domain_name}' does not exist.")
domain_names = [
"RecomAI",
"SuggestIQ",
"SmartRecom",
"AIRecos",
"OptiChoice",
"IntelliRecs",
"SmartSuggest",
"RecomAI",
"OptiChoice",
"GuidanceGuru",
"RecomNexus",
"AImpressions",
"SuggestWise",
"RecomBlend",
"SmartPicks",
"RecoMendr",
"InfiniSuggest",
"NexGenRecom",
"AIvise",
"SmartPicks",
"RecomAI",
"Suggestify",
"SmartRecos",
"IntelliRecommender",
"AI-Synced Suggestions",
"RecomAI",
"Suggestify",
"SmartRecos",
"AIRecommender",
"InsightfulAI",
"RecomGenius",
"SmartVise",
"AIRecoPro",
"SuggestMatic",
"Recommendify+",
"RecoGenius",
"SmartReveal",
"SuggestWise",
"CuriAIte",
"RapidRecos",
"RecBoost",
"AIAdvise",
"SmartRecs",
"RecomAIzer",
"SuggestWise",
"RecoGenius",
"AIRevolve",
"SuggestifyX",
"RecomeXcel",
"InsightSync",
"ContextSense",
"RecoBotica",
"RelevAI",
"PersoNexus",
"CogniRecom",
"ContextSense",
"RecoGenius",
"IntelliRecom",
"AdaptAI",
"RecomBlend",
"RecoSense",
"ContextIQ",
"IntelliRecom",
"AdaptiRex",
"PersoBot",
"ContextSense",
"RecoFlow",
"IntelliRecs",
"ContextualizeAI",
"SuggestWise",
"ContextAware",
"IntelliRecs",
"RecomSense",
"AdaptiSuggest",
"HyperRecomAI",
"RecomXpert",
"ContextSense",
"RecoProFound",
"SmartGuidance",
"AI-Navigator",
"ContextRec",
"AdaptAI",
"RecoSense",
"IntelliRecom",
"HyperRecs"
]
# with open("domain_list.txt", "w") as f:
for domain_name in domain_names:
dn = domain_name + ".ai"
result = check_domain_exists(dn)
print(f"{dn} => {result}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment