Configure Custom Domains for Your Static Sites
Replace the default Nife domain with your own custom domain. Complete guide to DNS configuration, SSL certificates, and provider-specific instructions.
What is a Custom Domain?
Instead of: https://my-portfolio.static.nifetency.com/
Use your own: https://portfolio.example.com/
Benefits
✓ Professional appearance - Use your own brand
✓ Memorable URL - Easier to remember and share
✓ SEO friendly - Better for search rankings
✓ Email alignment - Domain matches email
✓ Credibility - Looks more professional
Before You Start
Requirements
- Own a domain - Must own or control the domain
- Access to DNS - Ability to modify DNS records
- Domain registrar access - Where you registered it
Prerequisites Checklist
- Domain is registered and active
- Domain isn't expired
- You have DNS control
- Know your DNS provider
- Have registrar login credentials
Adding a Custom Domain
Steps
- Open your site in Site Details
- Click Add Custom Domain
- Enter your domain name (e.g.,
portfolio.example.com) - Copy the CNAME value provided
- Go to your DNS provider
- Add a CNAME record pointing to Nife
- Wait for DNS propagation (5-48 hours)
- Domain is live when verified
DNS Configuration
Step 1: Get CNAME Value
Nife provides a CNAME value to add to your DNS records.
Example CNAME:
- Name/Host:
portfolio.example.com(or justportfolio) - Value:
static.nife.domains. - Type: CNAME
- TTL: 3600 (or automatic)
Step 2: Add to DNS Provider
Log into your domain registrar and:
- Find DNS Settings or DNS Management
- Create a new CNAME record
- Enter the values Nife provided
- Save the record
Common DNS Providers
GoDaddy
- Go to Domain Settings
- Click Manage DNS
- Click Add Record
- Select CNAME record type
- Enter host and points to values
- Save
Namecheap
- Go to Dashboard
- Click Manage for domain
- Go to Advanced DNS
- Add New Record
- Select CNAME
- Enter values
- Save
Route 53 (AWS)
- Go to Hosted Zones
- Select your domain
- Click Create Record
- Select CNAME
- Enter values
- Click Create Records
Cloudflare
- Go to DNS section
- Click Add Record
- Select CNAME
- Enter values
- Keep Orange Cloud on (if applicable)
- Save
DNS Propagation
What is DNS Propagation?
DNS changes take time to spread across the internet. This is normal and expected.
How Long Does It Take?
- Immediate: Usually starts right away
- 1-2 hours: Typically fully propagated
- 24 hours: Guaranteed propagated
- 48 hours: Maximum wait time
Check DNS Status
You can check if DNS is working:
- Go back to Site Details
- Look for Domain Status
- Status options:
- ✅ Verified - Ready to use
- ⏳ Pending - Still propagating
- ❌ Failed - Configuration issue
Verify DNS is Working
- Use online DNS checker tool
- Enter your domain
- Should show CNAME record pointing to Nife
- Or try in terminal:
nslookup your-domain.com
SSL/TLS Certificates
Automatic Certificate
Nife automatically provides:
- ✅ Free SSL certificate - No cost
- ✅ Auto-renewal - Never expires
- ✅ HTTPS - Secure connection
- ✅ Perfect score - A+ rating
Certificate Status
Check certificate status in:
- Site Details
- Security section
- Shows certificate status and expiration
Certificate Renewal
Nife automatically renews before expiration:
- No action required
- Happens automatically
- Zero downtime
Testing Custom Domain
Before Going Live
- Add custom domain
- Wait for DNS propagation
- Test the domain in browser
- Check for HTTPS lock icon
- Verify all content loads
- Test links and functionality
Verification Steps
- Domain is accessible
- Shows HTTPS (not HTTP)
- Content loads completely
- No mixed content warnings
- All links work
- Mobile responsive
- No error messages
Removing Custom Domain
Go back to Nife default domain:
Steps
- Open Site Details
- Find Custom Domain section
- Click Remove or Delete
- Confirm removal
- Site reverts to default domain
Note: Default domain URL remains active.
Troubleshooting Domain Issues
Domain Not Working
Check:
- DNS record is correctly added
- CNAME value matches exactly
- Wait for DNS propagation
- Domain registrar saved changes
Solution:
- Wait 24 hours for propagation
- Verify DNS record in registrar
- Clear browser cache
- Try incognito/private browsing
"Domain Already in Use"
Reason: Domain already connected to another site or service
Solution:
- Remove domain from other service
- Wait a few hours
- Try adding again
- Or use subdomain (www.example.com)
HTTPS Certificate Warning
Reason: SSL certificate not yet issued
Solution:
- Wait for certificate generation
- Usually takes 5-10 minutes
- Check certificate status
- Clear browser cache
- Try again after 1 hour
DNS Changes Not Applied
Reason: DNS records not propagating
Solution:
- Verify record is correct
- Check for typos
- Confirm record type is CNAME
- Wait longer (up to 48 hours)
- Use DNS propagation checker
Multiple Domains
Use for:
example.comandwww.example.com- Multiple domain aliases
- International domains
Note: May need separate domains or subdomains
Best Practices
✓ Use your domain - Professional appearance
✓ Set up early - Do it when deploying
✓ Verify DNS - Check it works before going live
✓ Monitor certificate - Ensure SSL is active
✓ Use www subdomain - Optional but recommended
✓ Redirect HTTP to HTTPS - Security best practice
✓ Test thoroughly - Before telling people
✓ Keep registrar login - For future updates
DNS Record Examples
Example 1: Adding to GoDaddy
| Field | Value |
|---|---|
| Type | CNAME |
| Name | portfolio |
| Points to | static.nife.domains. |
| TTL | 3600 |
Result: portfolio.example.com → Nife
Example 2: Subdomain
| Field | Value |
|---|---|
| Type | CNAME |
| Name | www |
| Points to | static.nife.domains. |
Result: www.example.com → Nife
Example 3: Apex Domain (advanced)
For root domain (example.com without www):
- Requires A records instead of CNAME
- Nife support may provide specific IPs
- Contact support for apex domain setup
Related Topics
Getting Help
For domain-related issues:
- Check DNS configuration first
- Verify record values match
- Wait for DNS propagation
- Check certificate status
- Contact support with:
- Domain name
- Screenshot of DNS record
- Error message (if any)
<div itemType="https://schema.org/BreadcrumbList">
<meta itemProp="itemListOrder" content="Ascending" />
<div itemProp="itemListElement" itemType="https://schema.org/ListItem">
<meta itemProp="position" content="1" />
<meta itemProp="name" content="Docs" />
<meta itemProp="item" content="https://docs.nife.io/" />
</div>
<div itemProp="itemListElement" itemType="https://schema.org/ListItem">
<meta itemProp="position" content="2" />
<meta itemProp="name" content="Sites" />
<meta itemProp="item" content="https://docs.nife.io/docs/sites/" />
</div>
<div itemProp="itemListElement" itemType="https://schema.org/ListItem">
<meta itemProp="position" content="3" />
<meta itemProp="name" content="Custom Domains" />
<meta itemProp="item" content="https://docs.nife.io/docs/sites/custom-domains" />
</div>
</div>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "How to Configure a Custom Domain",
"description": "Step-by-step guide to setting up a custom domain with DNS configuration and SSL certificates",
"image": "https://docs.nife.io/img/domain-setup-guide.png",
"step": [
{
"@type": "HowToStep",
"name": "Add Domain in Nife",
"text": "Open Site Details and click 'Add Custom Domain', then enter your domain name"
},
{
"@type": "HowToStep",
"name": "Copy CNAME Values",
"text": "Copy the Name and Value that Nife provides for your DNS record"
},
{
"@type": "HowToStep",
"name": "Update DNS Records",
"text": "Log into your domain registrar and add a CNAME record with the values from Nife"
},
{
"@type": "HowToStep",
"name": "Wait for Propagation",
"text": "DNS changes take 1-48 hours to propagate across the internet"
},
{
"@type": "HowToStep",
"name": "Verify Domain is Live",
"text": "Check that Nife shows 'Verified' status and your domain is accessible"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How long does DNS propagation take?",
"acceptedAnswer": {
"@type": "Answer",
"text": "DNS changes typically propagate within 1-2 hours, though it can take up to 48 hours in some cases. You can check propagation status using online DNS checker tools."
}
},
{
"@type": "Question",
"name": "Is SSL/HTTPS included with custom domains?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes! Nife automatically provides free SSL certificates for all custom domains. HTTPS is enabled automatically and certificates renew themselves before expiration."
}
},
{
"@type": "Question",
"name": "Can I use an apex domain (without www)?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Technically challenging because CNAME records don't work at apex level. Contact Nife support for A record setup, or use a subdomain like www.example.com instead."
}
},
{
"@type": "Question",
"name": "What if my DNS provider isn't listed?",
"acceptedAnswer": {
"@type": "Answer",
"text": "The process is the same for most providers. Log into your DNS management, create a CNAME record with the values Nife provides, and wait for propagation."
}
}
]
}
</script>