Master Code
On The Go

Learn. Practice. Build.

How-To Guide

How to Get a Free Domain Name

A real domain name — not just a subdomain — costs money. But there are three legitimate ways to get one for free in 2026. Here's the honest truth about each.

⚠️ The honest truth: Freenom — the service that gave away free .tk and .ml domains for years — shut down in February 2024 after Meta sued it over phishing abuse. Roughly 12.6 million domains stopped resolving overnight. If any guide still tells you to "grab a free .tk domain," it's out of date. Here are the options that actually work in 2026.

🎯 Your Three Options (Ranked by Realism)

Method What You Get Cost Best For
Free subdomain yourname.github.io $0 forever Portfolios, projects, learning
Student Pack yourname.me $0 for 1 year Students with .edu email
Free TLD registrar yourname.dpdns.org $0 forever Personal projects, testing
1

Option 1: Free Subdomain (Easiest & Most Reliable)

This is what you already have if you've published a site on GitHub Pages. ✓ Recommended

Free subdomain providers:

  • GitHub Pages — yourusername.github.io
  • Cloudflare Pages — project.pages.dev
  • Netlify — project.netlify.app
  • Vercel — project.vercel.app

How to get it: Already covered in our Publish a Website for Free guide. Create a GitHub account, make a repo, enable Pages, done.

💡 The trade-off: You don't own the domain — it's a subdomain of GitHub, Netlify, etc. If they change policy, you lose it. But for portfolios and learning, this is genuinely fine.

2

Option 2: GitHub Student Developer Pack (Best for Students)

If you're a student, this is your best route to a real domain (not a subdomain). ⚠️ Students only

What you get:

  • 1 free .me domain from Namecheap (e.g., yourname.me)
  • Free SSL certificate for 1 year
  • GitHub Copilot Pro (free AI coding assistant)
  • $200 DigitalOcean credits
  • Azure credits, JetBrains licenses, and more

How to claim:

  1. Go to education.github.com/pack
  2. ;
  3. Click "Get your pack" and sign in with GitHub
  4. Verify your student status (school email, student ID, or transcript)
  5. Once approved, scroll to the Namecheap offer
  6. Claim your free .me domain
  7. Point it to your GitHub Pages site

⚠️ Important: The domain is free for 1 year. After that, it renews at Namecheap's standard .me rate (~$8-10/year). Set a calendar reminder.

💡 Not a student? Some countries offer "learn to code" programs that grant student status. Check your local education ministry or coding bootcamp partnerships.

3

Option 3: Free TLD Registrar (DigitalPlat FreeDomain)

A real second-level domain from a nonprofit-run registrar. ✓ Works without student status

DigitalPlat FreeDomain offers these extensions:

  • .dpdns.org
  • .us.kg
  • .qzz.io
  • .xx.kg
  • .qd.je

With over 500,000 domains registered, it's the most trusted free TLD provider in 2026.

How to register:

  1. Go to dash.domain.digitalplat.org
  2. Create an account with your email
  3. Search for your desired domain (e.g., yourname.dpdns.org)
  4. Register it — it's free, no credit card needed
  5. Add DNS records to point it at your hosting

💡 What about .tk, .ml, .ga, .cf, .gq? DNSHe still offers these, but reliability is lower and domains frequently get flagged as spam by email providers. Use DigitalPlat for better long-term stability.

🚫 What to Avoid

❌ "Free domain with hosting" offers

Hostinger, Wix, and Squarespace offer a "free domain" — but only if you buy their hosting plan ($3-14/month). It's not free; it's bundled. Over a year, you'll pay $40-170.

❌ .tk, .ml, .ga, .cf, .gq domains

These are free but unreliable. Meta, Google, and many email providers block them at the spam filter level. If you need to send email from your domain, avoid these.

❌ "Domain for $0.99" first-year deals

GoDaddy and others sell domains for $0.99 the first year, then charge $15-25/year after. It's not free — it's a trap. Read the renewal price before buying.

🔗 Connect Your Domain to Your Website

Once you have a domain, point it to your site. If you're using GitHub Pages:

1. Add the domain in GitHub

  1. Repository → Settings → Pages
  2. Under "Custom domain", enter your domain
  3. Click Save

2. Configure DNS at your registrar

Add these A records for the root domain:

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

And a CNAME record for www:

www → yourusername.github.io

3. Enable HTTPS

Back in Settings → Pages, check "Enforce HTTPS". GitHub provisions a free SSL certificate within 24 hours.

📚 Full custom domain guide →

🔧 Common Issues (and Fixes)

❌ "This domain is not available" on free registrars

Try a different extension. .dpdns.org has more availability than .us.kg. Add a number or middle initial to your name if your first choice is taken.

❌ Custom domain shows "DNS check unsuccessful" in GitHub

DNS changes can take up to 24 hours to propagate. Use dnschecker.org to verify your A records are live worldwide. If they are, remove and re-add the domain in GitHub settings.

❌ "Enforce HTTPS" checkbox is greyed out

GitHub hasn't finished issuing your SSL certificate yet. Wait up to 24 hours and check again. If your domain is on a free TLD that GitHub doesn't recognize, HTTPS may not be available.

❌ Student Pack application rejected

Use your school email address if you have one. If not, upload a clear photo of your student ID with the expiry date visible. GitHub usually responds within 24-48 hours.

❌ Free domain stopped working after a few months

Some free registrars require manual renewal or become unstable. If reliability matters, switch to a paid domain ($8-12/year from Namecheap, Cloudflare, or Porkbun).

💡 My Honest Recommendation

If you're a student: Get the GitHub Student Pack. The .me domain is a real domain, plus you get Copilot Pro and $200 in cloud credits.

If you're not a student: Start with a GitHub Pages subdomain (yourname.github.io). It's free forever and reliable. When you're ready to look professional, buy a .com for $10/year — it's worth it.

💡 The real answer: A free subdomain is fine for learning. A $10/year .com is the right answer for anything serious. Don't overthink the free option — the goal is to start shipping, not to save $10.

🎯 What's Next?

You've got a domain. Now put it to work.

← All How-To Guides