How to Bind a Custom Domain
Overview
This guide will walk you through the process of adding and configuring custom domains for your Sufy delivery space, including domain addition, DNS resolution configuration, SSL certificate setup, and more. With this guide, you can seamlessly integrate your own domain with Sufy services.
Prerequisites
Before you begin, please ensure you have:
- A valid Sufy account
- A created delivery space
- A registered custom domain
- Administrative access to your domain's DNS settings
Detailed Steps
Step 1: Add Custom Domain
- Log in to the Sufy Console
- Enter the delivery space console
- Navigate to "Domain Management"
- Click the "Add Custom Domain" button
- In the popup form:
- Enter your custom domain
- Select SSL certificate configuration options (we strongly recommend using our free SSL certificate)
- Confirm the configuration details
- Click the "Create" button to submit
Step 2: Configure DNS Resolution
After successful creation, the system will generate corresponding DNS records. You need to add these records at your domain registrar.
Specific steps:
- Log in to your domain registrar or DNS service provider's control panel
- Locate the DNS settings page for your domain
- Add resolution records, noting:
- Record type: Select CNAME
- Host record: Fill in according to your domain configuration
- Record value: Use the CNAME address provided by Sufy
- TTL: Recommended to set to 600 seconds (10 minutes) or less
Note: If you're using a root domain (e.g., example.com), you may not be able to add a CNAME record directly. In this case, please refer to Why Can't I Add CNAME Records to Root Domains for solutions.
Step 3: Wait for Resolution to Take Effect
DNS resolution requires some time to take effect, a process known as DNS propagation:
- Typical case: 5-10 minutes
- Maximum time: 24 hours
- Recommended waiting time: 15-30 minutes
How to check if resolution is effective:
- Use
nslookup
ordig
commands to check DNS resolution - Verify through online DNS checking tools
- Monitor domain status changes in the Sufy console
If it's still not effective after 1 hour:
- Check if DNS records are correctly configured
- Confirm there are no conflicting DNS records
- Contact Sufy online support for assistance
Step 4: SSL Certificate Configuration
If you chose to use Sufy's free SSL certificate:
- The certificate will be automatically requested and configured
- Usually completed within 5-10 minutes
If using your own SSL certificate:
- Prepare certificate files (including certificate and private key)
- Upload the certificate on the domain management page
- Wait for certificate deployment to complete
Step 5: Testing and Verification
After configuration is complete, perform the following tests:
- Resource access testing
- Test specific resources:
http://your-domain/resource-path
- Verify if resources load normally
- Test specific resources:
Common Issues and Solutions
1. DNS Resolution Issues
-
Cannot add CNAME record to root domain
- Reason: DNS standard limitations
- Solution: Use DNS provider's CNAME flattening feature or use A records instead
-
DNS resolution not taking effect
- Checkpoints:
- Whether DNS records are correctly configured
- Whether there are caching issues
- Whether TTL settings are appropriate
- Solutions:
- Clear local DNS cache
- Use multiple DNS checking tools for verification
- Lower TTL value to speed up effectiveness
- Checkpoints:
2. SSL Certificate Issues
-
Certificate request failure
- Possible reasons:
- DNS resolution not effective
- Solutions:
- Ensure DNS resolution is correct
- Possible reasons:
-
Certificate shows as insecure
- Checkpoints:
- Whether certificate is correctly installed
- Whether there is mixed content
- Whether certificate chain is complete
- Checkpoints:
3. Access Issues
- Domain inaccessible
- Checklist:
- Whether DNS resolution is effective
- Whether SSL certificate is normal
- Troubleshooting steps:
- Test connection using
curl
- Check error logs
- Verify firewall settings
- Contact support for assistance
- Test connection using
- Checklist:
Best Practices
-
DNS Configuration
- Use shorter TTL values for debugging
- Extend TTL appropriately after configuration is complete
- Recommend enabling DNSSEC for enhanced security
-
SSL Certificates
- Prioritize using Sufy's free certificates
- Prepare certificate renewal plans in advance
- Regularly check certificate status
-
Monitoring and Maintenance
- Regularly check domain status
- Monitor certificate expiration
- Keep DNS records clear and up-to-date
Getting Help
If you encounter any issues during configuration, you can get help through the following channels:
- Check the Help Documentation Center
- Contact Sufy online support
- Send email to technical support