Domain Delegation Guide
Learn how to properly delegate DNS for each domain level in Sleakops.
Overview
When Sleakops creates a hosted zone, you need to delegate the domain by updating DNS records at your domain provider (registrar). This guide explains the process for each domain level.
Provider Domain Delegation
What you're delegating
Your root domain (e.g., sleakops.com
) to AWS Route 53 via Sleakops.
Steps
-
Create the Provider domain in Sleakops
- Sleakops creates a hosted zone in AWS Route 53
- You'll see a table with 4 nameserver (NS) records
-
Locate the nameservers
ns-123.awsdns-12.com
ns-456.awsdns-45.net
ns-789.awsdns-78.org
ns-012.awsdns-01.co.uk
-
Update your domain registrar
- Log into your domain registrar (GoDaddy, Namecheap, Google Domains, etc.)
- Find the DNS or Nameserver settings
- Replace existing nameservers with the 4 AWS nameservers from Sleakops
- Save changes
-
Verify delegation
- Click "Check Delegate" button in Sleakops
- Wait for DNS propagation (can take up to 48 hours, usually faster)
- Green checkmark indicates successful delegation
Common Registrars
GoDaddy
- Go to Domain Manager
- Click on your domain
- Scroll to "Nameservers" → Click "Change"
- Select "Enter my own nameservers (advanced)"
- Add all 4 AWS nameservers
- Save
Namecheap
- Go to Domain List
- Click "Manage" next to your domain
- Select "Custom DNS" under Nameservers
- Add all 4 AWS nameservers
- Click the green checkmark
Cloudflare
Note: If using Cloudflare, you must disable Cloudflare proxy for proper delegation.
- Remove the domain from Cloudflare, OR
- Update nameservers to AWS (removes Cloudflare DNS management)
Environment Domain Delegation
What you're delegating
A subdomain (e.g., qa.sleakops.com
) to its own hosted zone.
Two Scenarios
Scenario A: Parent domain IS managed by Sleakops
Good news! Sleakops automatically creates the NS records in the parent hosted zone.
✅ No action needed - delegation is automatic
Scenario B: Parent domain is NOT managed by sleakops
If sleakops.com
is managed outside Sleakops, but you want qa.sleakops.com
in Sleakops:
-
Create the Environment domain in Sleakops
- Sleakops creates a hosted zone
- You'll see 4 nameserver records
-
Add NS records to parent domain
- Go to wherever
sleakops.com
DNS is managed (registrar, Cloudflare, etc.) - Create 4 NS records for the subdomain:
- Go to wherever
Record Type: NS
Name: qa
Value: ns-123.awsdns-12.com
Record Type: NS
Name: qa
Value: ns-456.awsdns-45.net
(repeat for all 4 nameservers)
- Verify delegation
- Click "Check Delegate" in Sleakops
- Wait for DNS propagation (usually 5-30 minutes)
Webservice Domain Configuration
What happens
Webservice domains (e.g., api.qa.sleakops.com
) are automatically configured.
✅ No delegation needed - Sleakops automatically:
- Creates CNAME record in the environment's hosted zone
- Points to the Application Load Balancer (ALB)
- Configures SSL certificate
You don't need to do anything!
Alias Domain Configuration
Alias domains require manual DNS configuration at your domain provider.
Scenario A: Alias matches existing hosted zone
Example: Your alias is api.external.com
and you already have external.com
as a Provider or Environment in Sleakops.
For SSL Certificate Validation
- Sleakops provides validation records
- You'll see CNAME records for certificate validation
- Example:
_acme-challenge.api.external.com → _validation123.acme.aws.com
- Add validation records to your DNS
- Go to the hosted zone for
external.com
(in Sleakops or wherever it's managed) - Add the CNAME records exactly as shown
- Wait for certificate validation (usually 5-15 minutes)
- Go to the hosted zone for
For Traffic Routing
- Sleakops provides ALB endpoint
- You'll see the ALB DNS name:
ALB: my-alb-123456.us-east-1.elb.amazonaws.com
- Create CNAME record
- Go to your DNS management for
external.com
- Create a CNAME record:
- Go to your DNS management for
Record Type: CNAME
Name: api
Value: my-alb-123456.us-east-1.elb.amazonaws.com
TTL: 300
- Verify
- Test the domain:
curl https://api.external.com
- Should return your service response
- Test the domain:
Scenario B: Alias doesn't match any hosted zone
Example: Your alias is anything.com
and this domain is not managed in Sleakops.
For SSL Certificate
- Sleakops creates SSL certificate
- Certificate validation records are provided
- Example:
_acme-challenge.anything.com → _validation456.acme.aws.com
- Add validation records
- Log into your domain provider for
anything.com
- Add the CNAME records for certificate validation
- Wait for validation (5-15 minutes)
- Log into your domain provider for
For Traffic Routing
- Sleakops provides ALB endpoint
ALB: my-alb-789012.us-east-1.elb.amazonaws.com
-
Configure DNS at your provider
Option 1: CNAME (for subdomains)
Record Type: CNAME
Name: www (or subdomain)
Value: my-alb-789012.us-east-1.elb.amazonaws.com
Option 2: A Record with ALIAS (for root domain)
- Some providers support ALIAS records (Route 53, Cloudflare)
Record Type: A (ALIAS)
Name: @ (root)
Value: my-alb-789012.us-east-1.elb.amazonaws.com
Option 3: A Record with IP (not recommended)
- Lookup ALB IPs and create A records
- ⚠️ IPs may change - use CNAME when possible
- Verify
- Test:
curl https://anything.com
- Ensure SSL certificate is valid
- Test:
Verification Checklist
Provider/Environment Domain
- Nameservers updated at registrar
- "Check Delegate" button shows success
- DNS lookup returns correct nameservers:
dig NS yourdomain.com
Webservice Domain
- Webservice is deployed and running
- Domain resolves:
curl https://api.qa.sleakops.com
- SSL certificate is valid (no browser warnings)
- DNS lookup returns correct CNAME:
dig CNAME api.qa.sleakops.com
Alias Domain
- Certificate validation records added
- Certificate shows as validated in Sleakops
- CNAME/A record points to ALB
- Domain resolves:
curl https://your-alias.com
- DNS lookup returns correct CNAME:
dig CNAME your-alias.com
- SSL certificate is valid
Troubleshooting
"Check Delegate" fails
Issue: Nameservers not properly delegated
Solutions:
- Verify you added ALL 4 nameservers
- Check for typos in nameserver values
- Wait longer (DNS propagation can take up to 48 hours)
- Clear DNS cache:
dig @8.8.8.8 yourdomain.com
- Verify at registrar that changes were saved
Certificate validation stuck
Issue: SSL certificate not validating
Solutions:
- Verify CNAME records are added correctly (no extra dots, correct values)
- Check TTL hasn't expired
- Remove any conflicting DNS records
- Wait 15-30 minutes for DNS propagation
- Check DNS:
dig _acme-challenge.yourdomain.com
Domain not resolving
Issue: Domain doesn't load your service
Solutions:
- Verify CNAME/A record points to correct ALB endpoint
- Check ALB is healthy and receiving traffic
- Verify webservice is deployed and running
- Test with
curl -v https://yourdomain.com
for detailed errors - Check security groups allow traffic on port 443
SSL certificate errors in browser
Issue: Browser shows "Not Secure" or certificate warnings
Solutions:
- Verify certificate is validated in Sleakops
- Check certificate includes your domain name
- Clear browser cache
- Verify correct certificate is attached to ALB listener
- Check certificate hasn't expired
DNS Propagation Time
Change Type | Typical Time | Maximum Time |
---|---|---|
Nameserver update | 15-30 minutes | 48 hours |
CNAME record | 5-15 minutes | 24 hours |
A record | 5-15 minutes | 24 hours |
Certificate validation | 5-15 minutes | 30 minutes |
💡 Tip: Use https://dnschecker.org
to check DNS propagation globally
Need Help?
- Check Domain Levels & Strategies
- Contact Sleakops support with your domain configuration details