Free Custom Domain Options

Intermediate 20 min read Lesson 4 of 5

What is a Custom Domain?

A custom domain is your own unique web address (like www.yourname.com) instead of the default URL provided by your hosting platform. Having a custom domain makes your website look more professional and is better for SEO.

Why Use a Custom Domain?
  • Professional appearance
  • Better branding
  • Improved SEO
  • Easier to remember
  • More trustworthy

Free Domain Providers

1. Freenom

Freenom
  • Domains: .tk, .ml, .ga, .cf, .gq
  • Cost: Free (renewable annually)
  • Features: DNS management, URL forwarding
  • Limitations: Limited TLDs, renewal required
Visit Freenom

2. Dot.tk

Dot.tk
  • Domains: .tk
  • Cost: Free
  • Features: DNS management, email forwarding
  • Limitations: Limited features, ads on free plan
Visit Dot.tk

3. InfinityFree

InfinityFree
  • Domains: Free subdomains or use your own
  • Cost: Free hosting with custom domain support
  • Features: Free SSL, PHP, MySQL
  • Limitations: Limited resources, ads on free plan
Visit InfinityFree

Configuring Your Custom Domain

Step 1: Register Your Domain

// Using Freenom
1. Go to Freenom.com
2. Search for available domain
3. Select .tk, .ml, .ga, .cf, or .gq
4. Complete registration (free)
5. Verify your email


                

Step 2: Configure DNS Records

// DNS Records to Configure
Type    Name    Value
A       @      your-server-ip
A       www     your-server-ip
CNAME   @      your-domain.com
CNAME   www     your-domain.com

// For Azure App Service
A       @      20.70.xxx.xxx  (Your App Service IP)
A       www     20.70.xxx.xxx  (Your App Service IP)

// For Netlify
CNAME   @      your-site.netlify.app
CNAME   www     your-site.netlify.app

// For GitHub Pages
CNAME   @      yourusername.github.io
CNAME   www     yourusername.github.io

Step 3: Configure Your Hosting Platform

// Azure App Service
1. Go to your App Service
2. Click "Custom domains"
3. Add domain
4. Verify domain ownership
5. Configure SSL

// Netlify
1. Go to Site settings > Domain management
2. Add custom domain
3. Configure DNS settings
4. Verify domain

// GitHub Pages
1. Create CNAME file in your repository
2. Add: yourdomain.com
3. Configure DNS with your provider

// Vercel
1. Go to Project settings > Domains
2. Add domain
3. Configure DNS with Vercel

SSL Certificates (Free)

// Let's Encrypt - Free SSL
1. Install Certbot or use hosting provider's SSL
2. Generate certificate
3. Configure web server

// Azure SSL (Free)
1. Azure provides free SSL certificates
2. Enable HTTPS Only in App Service
3. Configure TLS settings

// Cloudflare SSL (Free)
1. Sign up for Cloudflare
2. Add your domain
3. Configure DNS with Cloudflare
4. Enable SSL/TLS

Complete Custom Domain Setup

Step-by-Step Guide
  1. Choose and register a free domain
  2. Get your hosting platform's IP address
  3. Configure DNS records
  4. Wait for DNS propagation (24-48 hours)
  5. Add domain to your hosting platform
  6. Verify domain ownership
  7. Enable SSL certificate
  8. Test domain resolution
  9. Redirect www to non-www or vice versa
  10. Update site links to use new domain
Key Takeaway

Custom domains can be obtained for free and configured with most hosting platforms. They enhance professionalism and branding of your website.

Exercise

Set up a custom domain:

  1. Register a free domain
  2. Configure DNS records
  3. Add domain to your hosting platform
  4. Set up SSL certificate
  5. Test the configuration
  6. Set up email forwarding (optional)