- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
4.3 KiB
VMID 2400 - DNS CNAME Structure
Date: 2026-01-02
Domain: defi-oracle.io
Purpose: Two-level CNAME structure for ThirdWeb RPC endpoint
DNS Structure
The DNS configuration uses a two-level CNAME chain for flexibility:
rpc.defi-oracle.io
↓ (CNAME)
rpc.public-0138.defi-oracle.io
↓ (CNAME)
26138c21-db00-4a02-95db-ec75c07bda5b.cfargotunnel.com
↓ (Cloudflare Tunnel)
192.168.11.240:443 (Nginx) → 127.0.0.1:8545 (Besu RPC)
DNS Records to Create
Record 1: Tunnel Endpoint
Type: CNAME
Name: rpc.public-0138
Domain: defi-oracle.io
Target: 26138c21-db00-4a02-95db-ec75c07bda5b.cfargotunnel.com
Proxy: 🟠 Proxied (orange cloud)
TTL: Auto
Full FQDN: rpc.public-0138.defi-oracle.io
Purpose: Points directly to the Cloudflare tunnel endpoint
Record 2: Short Alias
Type: CNAME
Name: rpc
Domain: defi-oracle.io
Target: rpc.public-0138.defi-oracle.io
Proxy: 🟠 Proxied (orange cloud)
TTL: Auto
Full FQDN: rpc.defi-oracle.io
Purpose: Provides a shorter, more convenient alias that resolves to the full FQDN
Benefits of Two-Level Structure
- Flexibility: Can change the tunnel endpoint without updating the short alias
- Convenience:
rpc.defi-oracle.iois easier to remember and use - Backwards Compatibility: If you need to change the tunnel or endpoint structure, only the first CNAME needs updating
- Organization: The
rpc.public-0138name clearly indicates it's for ChainID 138 public RPC
Usage
Both endpoints will work and resolve to the same tunnel:
Full FQDN:
https://rpc.public-0138.defi-oracle.io
Short Alias:
https://rpc.defi-oracle.io
Both URLs will:
- Resolve through the CNAME chain
- Connect to Cloudflare tunnel
26138c21-db00-4a02-95db-ec75c07bda5b - Route to VMID 2400 (192.168.11.240)
- Be handled by Nginx on port 443
- Proxy to Besu RPC on port 8545
Cloudflare Dashboard Configuration
Step 1: Create First CNAME (Tunnel Endpoint)
- Go to: DNS → Records
- Click: Add record
- Configure:
- Type: CNAME
- Name:
rpc.public-0138 - Target:
26138c21-db00-4a02-95db-ec75c07bda5b.cfargotunnel.com - Proxy: 🟠 Proxied
- TTL: Auto
- Click: Save
Step 2: Create Second CNAME (Short Alias)
- Click: Add record again
- Configure:
- Type: CNAME
- Name:
rpc - Target:
rpc.public-0138.defi-oracle.io - Proxy: 🟠 Proxied
- TTL: Auto
- Click: Save
Verification
Test DNS Resolution
# Test full FQDN
dig rpc.public-0138.defi-oracle.io
nslookup rpc.public-0138.defi-oracle.io
# Test short alias
dig rpc.defi-oracle.io
nslookup rpc.defi-oracle.io
# Both should resolve to Cloudflare IPs (if proxied)
Test Endpoints
# Test full FQDN
curl -k https://rpc.public-0138.defi-oracle.io/health
# Test short alias
curl -k https://rpc.defi-oracle.io/health
# Both should work identically
Important Notes
-
Proxy Status: Both CNAME records should be Proxied (🟠 orange cloud) for DDoS protection and SSL termination
-
CNAME Chain: Cloudflare supports CNAME chains, so
rpc→rpc.public-0138→tunnelworks correctly -
Tunnel Route: The tunnel route in Cloudflare should be configured for
rpc.public-0138.defi-oracle.io(the actual endpoint), but both URLs will work since DNS resolves the short alias first -
Nginx Configuration: Nginx is configured for
rpc.public-0138.defi-oracle.ioas the server_name. If you want to support both, you can addrpc.defi-oracle.ioto the server_name directive, but it's not required since Cloudflare handles the DNS resolution.
Troubleshooting
CNAME Chain Not Resolving
- Wait 1-2 minutes for DNS propagation
- Verify both CNAME records are created correctly
- Check that the target of the first CNAME (
rpc.public-0138) points to the tunnel endpoint - Verify tunnel is healthy in Cloudflare Dashboard
Only One URL Works
- Check that both CNAME records are created
- Verify both are set to Proxied (orange cloud)
- Test DNS resolution for both:
dig rpc.defi-oracle.ioanddig rpc.public-0138.defi-oracle.io
Last Updated: 2026-01-02
Status: ✅ DOCUMENTATION COMPLETE