- Apex domains (example.com) - restores A records
- Any subdomain (www, shop, blog, etc.) - restores CNAME
When to Use
Call this endpoint when a user wants to disconnect their domain from the Search Company proxy. This returns the Entri-compatible configuration to restore their domain back to its original DNS configuration. Important: After Entri completes the DNS restore, call/mark-disconnect-complete to update the proxy status.
What This Does
- Looks up the original DNS records stored when the proxy was first set up
- Returns DNS records that restore the domain to its original configuration
- Optionally returns the SSL TXT record for cleanup (harmless to leave, but tidy to remove)
- Does NOT delete CloudFront or SSL resources (they remain for fast reconnection)
Example Request
Example Response (WWW Subdomain)
Example Response (Apex Domain)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the request succeeded |
| custom_domain | string | The domain being disconnected |
| domain_type | string | apex or subdomain |
| subdomain_label | string | www, shop, @ for apex |
| original_www_cname | string | Original CNAME (for subdomains) |
| original_apex_a_records | string[] | Original A records (for apex domains) |
| original_apex_cname | string | Original CNAME if using flattening (rare) |
| dns_records | array | DNS records to restore via Entri |
| ssl_txt_record_to_delete | object | Optional TXT record to clean up |
Frontend Integration
Use the response to configure Entri for the disconnect flow:Complete Disconnect Flow
- User clicks βDisconnect Domainβ
- Frontend calls
/disconnect-proxyβ gets restore DNS records - Entri restores www CNAME to original
- Frontend calls
/mark-disconnect-completeβ sets proxy_status = βDISCONNECTEDβ - CloudFront + ACM stay intact (for fast relink later)
After Disconnect
After the user completes the disconnect flow:- Their domain points back to the original host
- The CloudFront distribution remains but receives no traffic
- The SSL certificate remains (auto-renews via ACM)
- User can reconnect instantly by going through the 2-step DNS flow again (no CloudFront recreation needed)