> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/account-level/domains/domain-dns/sample-flows.md ## Article Content: # Sample Use Cases & Flows: Domain DNS This article shares a possible use case your implementation could support, as well as a sample flow. You're not limited to this use case, but it can be a helpful jumping off point for your planning. ## Update DNS records for a domain You can update the MX and TXT records for a domain purchased through Wix, and connect it to an external (non-Wix) site. To update the DNS records for a domain: 1. Prompt the site owner for the relevant domain name, DNS record type, and host name of the registered domain. 1. Call [Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md) to change the MX and TXT records in Google's Cloud DNS. 1. Connect the domain to the external site. ## Connect an external domain by nameservers to a Wix site You could help Wix site owners connect an external domain by nameservers to their site. Note that you can't use [Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md) for external domains that are connected by pointing. To connect an external domain by nameservers to a Wix site: 1. If the relevant site is a free Wix site, call [Resellers Create Package v2](https://dev.wix.com/docs/api-reference/account-level/resellers/packages-and-product-instances/create-package-v2.md) to assign a Premium plan to it. 1. Register the domain through an external provider. 1. Call [Create Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/create-connected-domain.md) to start the connection process. Make sure to use `{"connectionType": "NAMESERVERS"}`. 1. Call [Get Connected Domain Setup Info](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-setup-info-v1/connected-domain-setup-info-object.md) to retrieve the new DNS record values. You find them in `connectedDomainSetupInfo.pointingRecords.aRecord.values` and `connectedDomainSetupInfo.pointingRecords.cnameRecord.value`. 1. Call [Update DNS Zone](https://dev.wix.com/docs/rest/account-level/domains/domain-dns/update-dns-zone.md) to change the A and CNAME records in Google's Cloud DNS. 1. Call [Get Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/get-connected-domain.md) to monitor the connected domain's `dnsPropagationStatus` and confirm that it changes to `"COMPLETED"`.