Complete Guide to Adding a Secondary Domain in WhiteDNS Panel (v0.12.0)
A comprehensive walkthrough for adding a secondary domain and fallback nameservers for user tunnels, web panel access, and subscription links in WhiteDNS Server v0.12.0, with Cloudflare DNS records, session preservation, and emergency SSH recovery.
Why You Need a Secondary Domain for WhiteDNS
During severe network censorship, DNS and SNI filtering targeting primary domains often prevents users from accessing the web panel and updating their subscription links. WhiteDNS Panel v0.12.0 introduces native support for Secondary Domains (Dual-Domain Failover), enabling seamless operation without interrupting active tunnel sessions.
Step 1: Cloudflare DNS Configuration
Before modifying panel settings, log into your Cloudflare dashboard and configure the necessary DNS records for your second domain:
- A Record: Point
panel2.yourdomain.comto your VPS public IPv4 address (Set proxy status to DNS Only / Grey Cloud for tunnel ports, or Proxied / Orange Cloud if strictly using HTTPS port 443 with Origin CA). - NS Records: For DNS tunneling protocols (Soar, Cotten, MasterDNS), create NS delegation records (e.g.
ns1.yourdomain.comandns2.yourdomain.com) pointing to your server's IP address.
Step 2: Adding the Secondary Domain in WhiteDNS Panel
- Log into your WhiteDNS Web Dashboard with administrator credentials.
- Navigate to Settings → Domain & Network Management.
- Under Secondary Domain Configuration, enter your new domain name (e.g.,
panel2.yourdomain.com). - Select SSL Certificate generation method (Automated Let's Encrypt HTTP-01 challenge or custom Cloudflare Origin CA).
- Save changes and click Verify & Apply Routing.
Step 3: Verification & Emergency SSH Fallback
If you ever lose access to the web dashboard due to domain propagation issues, you can manage and recover domains directly via the server terminal:
# Check domain routing status
whitedns domain status
# Reset primary domain to default IP
whitedns domain reset --force
nslookup or dig command before distributing new subscription links to users.
