Skip to main content

POST /api/domain/disconnect-proxy/

Returns the DNS configuration needed to disconnect the proxy and restore original DNS settings.

Purpose

This endpoint provides Entri-compatible DNS records to restore the domain back to its original configuration (before the proxy was set up).

Architecture

Response Fields

FieldTypeDescription
successbooleanWhether config was retrieved
custom_domainstringThe custom domain
domain_typestring”apex” or β€œsubdomain”
subdomain_labelstringSubdomain label (e.g., β€œwww” or ”@β€œ)
original_www_cnamestringOriginal CNAME target
original_apex_a_recordsarrayOriginal A record IPs (for apex)
dns_recordsarrayEntri-compatible DNS records to restore
ssl_txt_record_to_deleteobjectOptional TXT record to remove

DNS Record Types

For Subdomain Domains

Returns a single CNAME record pointing back to the original target.

For Apex Domains

Returns either:
  • Original CNAME record (if was CNAME-flattened)
  • Original A records (if was A record)

Preservation Note

This endpoint only returns the DNS config. It does NOT delete:
  • CloudFront distribution
  • ACM certificate
These are preserved for fast reconnection later.

Code Location

src/app/apis/domain/disconnect_proxy/routes.py