B A C Docs
Console
Advanced Custom Domains & Routing Control

Custom Domains & Routing Control

Learn how to configure custom domains, set up CNAME records, and manage edge cache rules.

The B A C Cloud Infrastructure features a fully automated, next-generation Custom Domain Mapping System. By integrating the B A C Dynamic Autonomous Edge Router with the Cloudflare Custom Hostnames (SaaS) API, client applications benefit from instant mapping, automatic SSL generation, and zero-downtime routing adjustments.

How the Mapping System Works

1. Dynamic Edge Router (Ingress)

All client web traffic flows through our master Ingress Gateway. The router resolves incoming host headers via a dual-speed lookup mechanism:

  • Speed Tier 1 (Cache): Checks in-memory routing maps instantly (10-minute cache cycles).
  • Speed Tier 2 (DB lookup): Queries MongoDB for the matching internal subdomain or custom domain.

2. Cloudflare SaaS Automation

Instead of requiring manual configuration updates or server restarts on our servers, B A C interacts directly with Cloudflare to configure SSL and edge routing:

  • Registers custom domains as custom hostnames on Cloudflare.
  • Flares validation requirements (TXT verification codes) to secure SSL/TLS.
  • Automates tunnel routing mapping domains straight to backend processes.

Linking Your Custom Domain

1

Submit Domain in Dashboard

Navigate to your application settings page, scroll down to the **Custom Domains** section, enter your fully-qualified domain name (e.g. www.mybrand.com), and click **Link Domain**.

2

Add DNS Routing Records

Point your domain to the B A C network. Log into your domain registrar's panel (GoDaddy, Cloudflare, Namecheap, etc.) and add the CNAME or A records matching the dynamic configurations shown in your client console.

3

Complete Ownership & SSL Verification

Add the two TXT records generated in your client console: one for **Domain Ownership Verification** (_cf-custom-hostname) and one for **SSL/TLS validation** (_acme-challenge). These records allow Cloudflare to issue a valid SSL certificate for your site automatically.

DNS Record Configuration Matrix

Ensure your domain registrar's DNS settings match the parameters in the matrix below. Always prioritize using CNAME mappings when setting up subdomains:

DNS Type Host / Name Value / Points To TTL
CNAME Record www (or subdomain prefix) ingress.officialbac.in Automatic / 1 Hour
A Record @ (apex / root domain) 172.67.210.93 Automatic / 1 Hour
TXT Record _cf-custom-hostname (ownership check) [Copy unique verification value from your console] Automatic / 1 Hour
TXT Record _acme-challenge (SSL validation) [Copy unique SSL token from your console] Automatic / 1 Hour

Instructions by Registrar:

  • Cloudflare: Go to the DNS settings page. Add a new CNAME record. Set Name to www and Target to ingress.officialbac.in. Set Proxy status to "DNS Only" during the validation step. Ensure that under the SSL/TLS tab, mode is set to "Full" or "Full (Strict)". For root domains, add an A record pointing to 172.67.210.93.
  • GoDaddy: Under DNS Zone Settings, add a CNAME record. Host: www. Points to: ingress.officialbac.in. Save. Add the TXT records with names _cf-custom-hostname.www and _acme-challenge.www (using the values provided in your console).
  • Namecheap: Open Advanced DNS. Add a new CNAME record with Host www pointing to Value ingress.officialbac.in. Save. Add the TXT records generated in the console to verify ownership and certificate issuance.

Domain Management Operations

Within your application dashboard, the following controls are available to manage your domain mapping directly:

Tunnel Re-Sync

If DNS validation stalls or if a tunnel node is restarted, click **Check Cloudflare Status / Re-sync** to trigger an update call to Cloudflare SaaS and re-register the domain route in the active tunnel registry.

Flush Ingress Cache

To maintain lightning-fast response times, the Edge Router caches application configurations. If you link a new custom domain or modify configurations, click **Flush Ingress Cache** in the admin panel to force immediate routing updates across the gateway.

Sever / Remove Domain

Clicking the **Remove Domain** button will immediately detach the custom domain from your application in the routing database, delete the custom hostname mapping in Cloudflare SaaS, and flush the dynamic ingress lookup cache.