How to add a custom domain to your webpage: Complete Guide
Published on 6/11/2025
How to add a custom domain to your webpage: Complete Guide
Setting up a custom domain for your webpage gives it a professional appearance and makes it easier for visitors to find and remember your site. Instead of using a subdomain like mysite.pagelet.host
, you can use your own domain like mycompany.com
.
This comprehensive guide will walk you through the entire process, from purchasing a domain to configuring DNS settings with major providers.
What You'll Need
Before getting started, make sure you have:
- ✅ A custom domain (purchased from any registrar)
- ✅ Access to your domain's DNS settings
- ✅ Your webpage hosted on a platform that supports custom domains
- ✅ The IP address where your site is hosted (e.g.,
66.135.24.74
)
Understanding DNS Records
DNS (Domain Name System) is like the phonebook of the internet. When someone types your domain name, DNS tells their browser where to find your website.
Key DNS Record Types
- A Record: Points your domain to an IP address (IPv4)
- AAAA Record: Points your domain to an IPv6 address
- CNAME Record: Points your domain to another domain name
- MX Record: Handles email routing
For most custom domain setups, you'll primarily work with A records.
Basic DNS Configuration
Regardless of your domain provider, you'll typically need to set up these records:
Type: A
Name: @
Value: 66.135.24.74
TTL: 3600 (or Auto)
Type: A
Name: www
Value: 66.135.24.74
TTL: 3600 (or Auto)
What this means:
@
represents your root domain (example.com)www
handles the www subdomain (www.example.com)- Both point to the same server IP address
Provider-Specific Setup Guides
🔵 Namecheap
- Log in to your Namecheap account
- Navigate to Domain List → Click "Manage" next to your domain
- Go to Advanced DNS tab
- Delete existing A records (if any)
- Add new A records:
Type: A Record
Host: @
Value: 66.135.24.74
TTL: Automatic
Type: A Record
Host: www
Value: 66.135.24.74
TTL: Automatic
- Save changes and wait for propagation (up to 24 hours)
🟠 GoDaddy
- Sign in to your GoDaddy account
- Go to My Products → DNS next to your domain
- Click on DNS Records
- Find existing A records and click the pencil icon to edit
- Update or add these records:
Type: A
Name: @
Value: 66.135.24.74
TTL: 1 Hour
Type: A
Name: www
Value: 66.135.24.74
TTL: 1 Hour
- Click Save and wait for changes to take effect
🟡 Cloudflare
Cloudflare offers additional benefits like CDN and DDoS protection:
- Log in to Cloudflare
- Select your domain
- Go to DNS tab
- Add or edit A records:
Type: A
Name: @
IPv4 address: 66.135.24.74
Proxy status: Proxied (🟠) or DNS only (☁️)
TTL: Auto
Type: A
Name: www
IPv4 address: 66.135.24.74
Proxy status: Proxied (🟠) or DNS only (☁️)
TTL: Auto
Pro tip: Start with "DNS only" mode until your site is working, then enable proxy for additional features.
🔴 Google Domains
Note: Google Domains was sold to Squarespace in 2023, but the process remains similar:
- Access your Google Domains account
- Click on your domain name
- Go to DNS in the left sidebar
- Scroll to Custom resource records
- Add these records:
Name: @
Type: A
TTL: 3600
Data: 66.135.24.74
Name: www
Type: A
TTL: 3600
Data: 66.135.24.74
- Click Add for each record
🟢 Squarespace Domains
- Log in to your Squarespace account
- Go to Settings → Domains
- Click on your domain → DNS Settings
- Add or edit A records:
Host: @
Type: A
Priority: N/A
Value: 66.135.24.74
Host: www
Type: A
Priority: N/A
Value: 66.135.24.74
🟣 Route 53 (AWS)
For AWS Route 53 users:
- Open the Route 53 console
- Choose Hosted zones
- Select your domain's hosted zone
- Create records:
Record name: (leave blank for root)
Record type: A
Value: 66.135.24.74
TTL: 300
Record name: www
Record type: A
Value: 66.135.24.74
TTL: 300
🔶 Porkbun
- Log in to Porkbun
- Go to Account → Domain Management
- Click DNS next to your domain
- Add or edit records:
Type: A
Host: @
Answer: 66.135.24.74
TTL: 600
Type: A
Host: www
Answer: 66.135.24.74
TTL: 600
Advanced Configuration Options
Setting Up Subdomains
You can create subdomains like blog.yourdomain.com
or shop.yourdomain.com
:
Type: A
Name: blog
Value: 66.135.24.74
TTL: 3600
Email Configuration
If you plan to use email with your domain, you'll need MX records. Here's an example for Google Workspace:
Type: MX
Name: @
Priority: 1
Value: aspmx.l.google.com
SSL/HTTPS Setup
Pagelet automatically handles SSL certificate generation for your custom domain. Once your DNS records are properly configured and propagated, we'll automatically generate and install a free SSL certificate for your domain using Let's Encrypt.
No additional configuration is needed on your part - your site will be served over HTTPS within minutes of DNS propagation.
Verification and Troubleshooting
Check DNS Propagation
Use these tools to verify your DNS changes:
- WhatsMyDNS.net - Global DNS propagation checker
- Google DNS Checker -
nslookup yourdomain.com 8.8.8.8
- Command line:
dig yourdomain.com
(Mac/Linux)
Common Issues and Solutions
Problem: Website not loading after 24 hours Solution:
- Verify IP address is correct
- Check for typos in DNS records
- Ensure TTL isn't too high
Problem: www works but root domain doesn't (or vice versa) Solution:
- Make sure both @ and www A records exist
- Check if one is redirecting to the other
Problem: Old website still showing Solution:
- Clear browser cache
- Try incognito/private browsing
- Check DNS propagation tools
Problem: SSL certificate errors Solution:
- Wait for automatic certificate generation
- Contact your hosting provider
- Verify domain ownership
TTL (Time To Live) Explained
TTL determines how long DNS servers cache your records:
- 300 seconds (5 minutes): For testing/frequent changes
- 3600 seconds (1 hour): Standard setting
- 86400 seconds (24 hours): For stable configurations
Lower TTL = faster updates but more DNS queries Higher TTL = slower updates but better performance
Best Practices
1. Plan Your DNS Structure
yourdomain.com (main site)
www.yourdomain.com (redirect to main)
blog.yourdomain.com (blog subdomain)
api.yourdomain.com (API subdomain)
2. Use Consistent TTL Values
Set TTL to 300 seconds during initial setup, then increase to 3600+ once stable.
3. Keep Records Simple
Only add the DNS records you actually need. Extra records can cause confusion.
4. Document Your Setup
Keep a record of your DNS configuration for future reference.
5. Test Thoroughly
- Test both www and non-www versions
- Check on different devices and networks
- Verify SSL certificate installation
Platform-Specific Instructions
For Pagelet.host Users
If you're using Pagelet.host with a premium account:
- Configure DNS using any of the guides above
- Wait for propagation (up to 24 hours)
- Add domain in dashboard through the custom domain field
- SSL certificate will be automatically generated
- Test your site at your custom domain
For Other Platforms
- Netlify: Use their DNS records or configure custom domains in dashboard
- Vercel: Add domain in project settings, then configure DNS
- GitHub Pages: Add CNAME file and configure DNS
- WordPress.com: Upgrade plan required, then add in domain settings
Security Considerations
DNSSEC
Enable DNSSEC if your registrar supports it for additional security:
- Prevents DNS spoofing attacks
- Ensures DNS responses haven't been tampered with
- Supported by most major registrars
CAA Records
Certificate Authority Authorization records specify which CAs can issue certificates for your domain:
Type: CAA
Name: @
Value: 0 issue "letsencrypt.org"
Conclusion
Setting up a custom domain might seem complex at first, but following these step-by-step instructions for your specific provider will get you up and running quickly. Remember that DNS changes can take up to 24 hours to fully propagate worldwide, so be patient if your domain doesn't work immediately.
Key takeaways:
- ✅ Configure both @ and www A records
- ✅ Use the correct IP address (66.135.24.74 for Pagelet.host)
- ✅ Wait for DNS propagation (up to 24 hours)
- ✅ Test thoroughly across different devices
- ✅ Enable SSL/HTTPS for security
Once your custom domain is set up, your webpage will have a professional appearance that builds trust with visitors and makes your site easier to remember and share.