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
2. Dot.tk
Dot.tk
- Domains: .tk
- Cost: Free
- Features: DNS management, email forwarding
- Limitations: Limited features, ads on free plan
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
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
- Choose and register a free domain
- Get your hosting platform's IP address
- Configure DNS records
- Wait for DNS propagation (24-48 hours)
- Add domain to your hosting platform
- Verify domain ownership
- Enable SSL certificate
- Test domain resolution
- Redirect www to non-www or vice versa
- 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:
- Register a free domain
- Configure DNS records
- Add domain to your hosting platform
- Set up SSL certificate
- Test the configuration
- Set up email forwarding (optional)