Domain Name Tips
This revision is from 2024/03/02 09:55. You can Restore it.
- Keep it short
- Preference for .com
- Forget hyphens and numbers
- One syllable
- A word you can say
A domain name does not buy you anything. Building a brand around any name is as good as any name, and still difficult. My reasoning is just buy 1 domain name and do everything there.
expireddomains.net is a great place to re-register 0 day deleted domains. People have decided not to renew the domain, and now it is back on the market.
My advice to IANA is to phase out all the domain name extensions except for .com .net and .org and limit a valid domain name to 12 characters max, at most along with no numbers or hyphens.
Here are some useless python scripts...
{{code}}
import whois
import sqlite3
def get_domain_expiration_date(domain_name):
try:
# Perform WHOIS lookup
domain_info = whois.whois(domain_name)
# Extract expiration date
if domain_info.expiration_date:
if isinstance(domain_info.expiration_date, list):
# Handle multiple expiration dates
expiration_date = domain_info.expiration_date[0]
else:
expiration_date = domain_info.expiration_date
return expiration_date
else:
return None
except Exception as e:
print(f"Error: {str(e)}")
return None
def insert_into_database(domain_name, expiration_date):
try:
# Connect to SQLite database
conn = sqlite3.connect('domains.db')
cursor = conn.cursor()
# Create table if not exists
cursor.execute('''CREATE TABLE IF NOT EXISTS domains (
domain_name TEXT PRIMARY KEY,
expiry_date TEXT
)''')
# Insert domain name and expiration date
cursor.execute('''INSERT OR REPLACE INTO domains (domain_name, expiry_date)
VALUES (?, ?)''', (domain_name, expiration_date))
# Commit changes
conn.commit()
conn.close()
except Exception as e:
print(f"Error inserting into database: {str(e)}")
def main():
# Loop through all combinations of domain names from aa.com to zzzz.com
for i in range(26):
for j in range(26):
for k in range(26):
- for l in range(26):
domain_name = chr(ord('a') + i) + chr(ord('a') + j) + chr(ord('a') + k) + ".com"
expiration_date = get_domain_expiration_date(domain_name)
print(f"Domain {domain_name} expiration date: {expiration_date}")
if expiration_date:
insert_into_database(domain_name, expiration_date)
print("Domain information inserted into database.")
else:
print("Unable to retrieve expiration date. Not inserted into database.")
domain_name = chr(ord('a') + i) + chr(ord('a') + j) + chr(ord('a') + k) + ".org"
expiration_date = get_domain_expiration_date(domain_name)
print(f"Domain {domain_name} expiration date: {expiration_date}")
if expiration_date:
insert_into_database(domain_name, expiration_date)
print("Domain information inserted into database.")
else:
print("Unable to retrieve expiration date. Not inserted into database.")
if __name__ == "__main__":
main()
{/code}