📞 🇺🇸 +1 361 304 4309 📞 🇮🇳 +91 76769 02281 ✉️ [email protected]
Server Management

How to Set Up Wildcard DNS on CloudPanel

How to Set Up Wildcard DNS on CloudPanel

Wildcard DNS allows a single DNS record to cover all subdomains — essential for SaaS applications where each customer gets their own subdomain.

Step 1 — Add Wildcard DNS Record

Type: A
Name: *.yourdomain.com
Content: YOUR_SERVER_IP

Step 2 — Configure Nginx

server {
    listen 443 ssl;
    server_name *.yourdomain.com;

    set $subdomain "";
    if ($host ~* ^(.+)\.yourdomain\.com$) {
        set $subdomain $1;
    }

    root /var/www/app/public;
    location / {
        try_files $uri $uri/ /index.php?subdomain=$subdomain&$args;
    }
}

Step 3 — Wildcard SSL Certificate

sudo certbot certonly   --manual   --preferred-challenges dns   -d yourdomain.com   -d *.yourdomain.com   --server https://acme-v02.api.letsencrypt.org/directory

Conclusion

Wildcard DNS enables scalable multi-tenant architectures. Our team configures wildcard DNS and SSL for SaaS applications.

#wildcard #dns #cloudpanel #ssl
Share:
🛠️ Need Expert Help?

Don't want to do this yourself?

Our certified engineers implement this for you — correctly, securely, and within hours. Available 24/7 with 15-minute emergency response.

  • ✅ 19+ years experience
  • ✅ 60+ certified engineers
  • ✅ 1,600+ servers managed
  • ✅ 40+ countries served
  • ✅ Plans from $49/mo

Get Expert Help — Free Consultation

We respond within 4 hours · No commitment required

Please enter your name and a valid email.

No spam. Privacy Policy

Comments