| Internet-Draft | Domain Connect Async | June 2026 |
| Kowalik, et al. | Expires 16 December 2026 | [Page] |
This document defines the Asynchronous OAuth 2.0 extension to the Domain Connect Protocol specified in I-D.draft-ietf-dconn-domainconnect-02, Section .¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 16 December 2026.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The Domain Connect Protocol, as specified in [I-D.draft-ietf-dconn-domainconnect], defines a synchronous flow for DNS configuration provisioning between Service Providers and DNS Providers. This document extends that protocol with an asynchronous OAuth 2.0 based flow, needed by Service Providers that have more complex configurations that may require multiple steps and/or are asynchronous from the user's interaction.¶
Implementations of this extension MUST also implement [I-D.draft-ietf-dconn-domainconnect] however the implementation of synchronous flow is in this case OPTIONAL. It is RECOMMENDED that Service Providers that implement the asynchronous flow also implement the synchronous flow as a fallback for DNS Providers that do not support the asynchronous flow.¶
The following use cases illustrate scenarios where the asynchronous flow defined in this document is needed, typically because the DNS configuration involves multiple steps, recurring updates, or changes that occur while the User is not actively present.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
All terms defined in [I-D.draft-ietf-dconn-domainconnect] apply to this document.¶
"client_id":"response_type":The following term is used as an abbreviation in this document:¶
The following ABNF rules are defined in this document:¶
dc-scope = dc-id *( SP dc-id )
; space-separated list of dc-id values;
; strict subset of OAuth 2.0 scope (RFC 6749
; Appendix A.4);
; used for the scope parameter
dc-force = "0" / "1"
; used for force parameter
; 0 = respect conflicts, 1 = override conflicts¶
The dc-id rule is defined in [I-D.draft-ietf-dconn-domainconnect].¶
The dc-host-list rule is defined in [I-D.draft-ietf-dconn-domainconnect].¶
The asynchronous OAuth flow is tailored for the Service Provider that wishes to make changes to DNS asynchronously with respect to the user interaction, or wishes to make multiple or additional changes to DNS over time.¶
Steps 1-14 of the asynchronous flow are identical to those of the Synchronous Flow defined in [I-D.draft-ietf-dconn-domainconnect]. This section describes the divergence beginning at step 15, where the DNS Provider requests OAuth consent for future DNS changes instead of applying the template immediately.¶
,-.
`-'
/|\
| ,----------------. ,------------. ,----------.
/ \ |Service Provider| |DNS Provider| |DNS Server|
User `--------+-------' `------+-----' `-----+----'
. . . .
. Steps 1-14 same as for Synchronous flow .
. . . .
| | | |
| | | |
| 15 Requests consent for | |
| (future) DNS changes | |
|<--------------------------------| |
| | | |
| 16 Grants consent | |
|-------------------------------->| |
| | | |
| 17 Provides OAuth code |
| |<-----------------| |
| | | |
| 18 Exchanges code for token |
| |----------------->| |
| | | |
| 19 Returns access token |
| |<-----------------| |
. . . .
. . Later . .
. . . .
. 20 Sends API request with token .
| |----------------->| |
| | | |
| | 21 Apply changes to DNS|
| | |--------------------->|
| | | |
| 22 Respond success | |
| |<-----------------| |
| | | |
| | 23 Query DNS records |
| |---------------------------------------->|
| | | |
| | 24 New DNS records |
| |<----------------------------------------|
| | | |
25 Report success (async) | |
|<- - - - - - -| | |
Steps:¶
1-14: Same as for the Synchronous Flow.¶
This document extends the settings response defined in [I-D.draft-ietf-dconn-domainconnect] by normatively defining the "urlAsyncUX" field. DNS Providers that support the asynchronous flow MUST include this field in their settings response. If "urlAsyncUX" is absent from the settings response, the Service Provider MUST treat the DNS Provider as not supporting the asynchronous flow for that domain.¶
The following field is added to the settings data structure defined in [I-D.draft-ietf-dconn-domainconnect]:¶
| Field | Key | Type | Description |
|---|---|---|---|
| UX URL Prefix for Asynchronous Flows | urlAsyncUX | String | (OPTIONAL) The URL Prefix for linking to the UX elements of Domain Connect for the asynchronous flow at the DNS Provider. If not returned, the DNS Provider is not supporting the asynchronous flow on this domain. This MUST be a valid URI [RFC3986] with scheme "https", MUST include an authority component, and MUST NOT contain a query component or fragment component.The URI MAY include a path component. |
The "urlAPI" field defined in [I-D.draft-ietf-dconn-domainconnect] is also used for the asynchronous API endpoints defined in this document (see Section 6.4 and Section 6.6).¶
Details of an OAuth implementation are beyond the scope of this specification. Instead, an overview of how OAuth is used by Domain Connect is given here.¶
Service Providers wishing to use the OAuth flow MUST register as an OAuth client with each DNS Provider. This is typically a manual process, however other solutions like OAuth Dynamic Client Registration [RFC7591] MAY be offered by DNS Provider as well.¶
To register, the Service Provider would provide (in addition to their template) any configuration necessary for the DNS Providers OAuth implementation. This includes valid URLs and Domains for redirects upon success or errors of OAuth flow, token validity, presence and validity of refresh tokens etc.¶
The DNS Provider SHOULD give the Service Provider a client id and a secret which will be used when requesting tokens. For simplicity the client id MAY be the same as the providerId, however it is up to the agreement between the parties involved. Alternatively, any other form of client authentication within OAuth framework MAY be agreed between the parties.¶
POST
{+urlAPI}/v2/oauth/access_token¶
| Property | Request Parameter | Description |
|---|---|---|
| URL API | urlAPI | (REQUIRED) Value of urlAPI property from the settings endpoint. The value MUST be an absolute URI conforming to [RFC3986]. |
Once authorization has been granted, the Service Provider MUST use the Authorization Code provided to request an Access Token. The OAuth specification recommends that the Authorization Code be a short lived token, and a reasonable recommended setting is ten minutes, however the specific setup would depend on specifics of DNS Provider's implementation. As such this exchange needs to be completed before that time has expired or the process will need to be repeated.¶
This token exchange is typically done via a server to server API call from the Service Provider to the DNS Provider using a POST. When called in this manner a secret is provided along with the Authorization Code.¶
OAuth does allow for retrieving the access token without a secret. This is typically done when the OAuth client is a client application. When onboarding with the DNS Provider this would need to be enabled if required by the Service Provider.¶
The following table describes the POST parameters that MUST be included in the request for the access token unless otherwise indicated. The parameters SHALL be accepted via the query string or the body of the post. This is again particularly important for the client_secret, as passing secrets via a query string is generally frowned upon given that various systems often log URLs.¶
The body of the post is "application/json" encoded.¶
For an initial access token request, "code" MUST be set and "refresh_token" MUST NOT be set. For a refresh request, "refresh_token" MUST be set and "code" MUST NOT be set. If "redirect_uri" was included in the original authorization request, it MUST be present in the token request and MUST be identical to the value used in that request.¶
| Property | Key | Description |
|---|---|---|
| Authorization Code | code | (CONDITIONAL) The authorization code returned in the authorization response when the user accepted the authorization request. This value MUST NOT be set when "refresh_token" is set.The value MUST conform to the "code" syntax as defined in Appendix A, Section A.11 of [RFC6749]. |
| Refresh Token | refresh_token | (CONDITIONAL) The refresh token used to obtain a new access token when the current one has expired. This value MUST NOT be set when "code" is set.The value MUST conform to the "refresh_token" syntax as defined in Appendix A, Section A.17 of [RFC6749]. |
| Redirect URI | redirect_uri | (CONDITIONAL) The redirect URI used in the authorization request, included for verification. The value MUST conform to the "redirect_uri" syntax (see Section 3). |
| Grant Type | grant_type | (REQUIRED) The grant type of the token request. The value MUST be either "authorization_code" or "refresh_token", as defined in Appendix A, Section A.10 of [RFC6749]. |
| Client ID | client_id | (REQUIRED) The client identifier issued by the DNS Provider to the Service Provider during registration. The value MUST conform to the "client_id" syntax (see Section 3). |
| Client Secret | client_secret | (REQUIRED) The client secret issued to the Service Provider during registration. MAY be omitted in deployments using secret-less OAuth. The value MUST conform to the "client_secret" syntax as defined in Appendix A, Section A.2 of [RFC6749]. |
Upon successful token exchange, the DNS Provider MUST return a response with 4 properties in the body of the response.¶
| Property | Key | Description |
|---|---|---|
| Access Token | access_token | (REQUIRED) The access token to be used when making API requests. The value MUST conform to the "access_token" syntax as defined in Appendix A, Section A.12 of [RFC6749]. |
| Token Type | token_type | (REQUIRED) The type of the access token. The value MUST conform to the "token_type" syntax as defined in Appendix A, Section A.13 of [RFC6749].The value MUST be "bearer". |
| Expires In | expires_in | (REQUIRED) The lifetime of the access token in seconds. The value MUST conform to the "expires_in" syntax as defined in Appendix A, Section A.14 of [RFC6749]. |
| Refresh Token | refresh_token | (OPTIONAL) The token used to request new access tokens when the current one expires. The value MUST conform to the "refresh_token" syntax as defined in Appendix A, Section A.17 of [RFC6749]. |
| Status | Response | Description |
|---|---|---|
| Success | 2xx | A response of an http status code of 2xx indicates that the call was successful. The response is the JSON described above. |
| Errors | 4** | All other responses indicate an error. |
Once the Service Provider has the access token, they can call the DNS Provider's API to make changes to DNS on the domain by applying and (OPTIONALLY) removing authorized templates. These templates can be applied to the Zone Apex or to any Sub Domain that has been authorized.¶
All calls to this API pass the access token in the Authorization request header field as a bearer token, as specified in [RFC6750], for example:¶
GET /resource/1 HTTP/1.1 Host: example.com Authorization: Bearer mF_9.B5f-4.1JqM¶
POST
{+urlAPI}/v2/domainTemplates/providers/{providerId}/services
/{serviceId}/apply{?domain,host,groupId,force,providerName,
serviceName,instanceId,properties*}¶
The primary function of the API is to apply a template to a user domain.¶
While the "providerId" is implied in the authorization, this is on the URL path for consistency with the synchronous flows and other APIs. If not matching what was authorized, an error MUST be returned.¶
When applying a template to a domain, it is possible that a conflict may exist with previous settings. While it is recommended that conflicts be detected when the user grants consent, because OAuth is asynchronous it is possible that a new conflict was introduced by the user.¶
While it is up to the DNS Provider to determine what constitutes a conflict (see section on Conflict Detection in [I-D.draft-ietf-dconn-domainconnect]), when one is detected calling this API MUST return an error. This error SHOULD enumerate the conflicting records in a format described below.¶
Because the user often isn't present at the time of this error, it is up the Service Provider to determine how to handle this condition. Some providers may decide to notify the user. Others may decide to apply their template anyway using the "force" parameter. This parameter will bypass error checks for conflicts, and after the call the service will be in its desired state.¶
Calls to apply a template via OAuth require the following parameters posted to the above URL unless otherwise indicated.¶
The DNS Provider MUST accept parameters in query string or body of this post. When "properties" name/value pairs are passed as query string parameters, the names and values MUST be URL-decoded (percent-decoded per [RFC3986]) before processing.¶
The body is "application/json" encoded.¶
| Property | Key | Description |
|---|---|---|
| URL API | urlAPI | (REQUIRED) The base URL of the DNS Provider API, taken from the "urlAPI" field of the settings endpoint response (see Section 5).The value MUST be an absolute URI conforming to [RFC3986]. |
| Service Provider Id | providerId | (REQUIRED) Identifier of the Service Provider of the template to be applied. The value MUST conform to the dc-id syntax (see Section 3). |
| Service Id | serviceId | (REQUIRED) Identifier of the template to be applied. The value MUST conform to the dc-id syntax (see Section 3). |
| Domain | domain | (REQUIRED) The Zone Apex domain name being configured. The value MUST conform to the domain-name syntax (see Section 3). |
| Host | host | (OPTIONAL) The host name of the Sub Domain within the zone identified by "domain".When present, the value MUST be a single name conforming to domain-name (see Section 3) or an empty string. |
| Name/Value Pairs | * | (REQUIRED) Variable values to be substituted into the template. Each parameter name MUST correspond to a variable name defined in the template and MUST conform to the variable-name syntax (see Section 3).Each parameter value MUST conform to the dc-prop-value syntax (see Section 3), using the DNS presentation format [RFC9499].The DNS Provider MUST ignore any parameter not referenced in the template. |
| Group ID | groupId | (OPTIONAL) Specifies the subset of groups from the template to apply. The value MUST conform to the dc-id-list syntax (see Section 3). |
| Force | force | (OPTIONAL) Specifies that the template SHOULD be applied independently of any conflicts that may exist on the domain. The value MUST conform to the dc-force syntax (see Section 3).The default when omitted is "0". |
| Provider Name | providerName | (OPTIONAL) This parameter allows for the caller to provide additional context for the "providerName" that applied the template. It MAY be used by DNS Providers that want to display state regarding which templates have been applied. It is only allowed when the "sharedProviderName" attribute is set in the template being applied.The value MUST conform to the dc-display-name syntax (see Section 3). |
| Service Name | serviceName | (OPTIONAL) This parameter allows for the caller to provide additional context for the "serviceName" that applied the template. It MAY be used by DNS Providers that want to display state regarding which templates have been applied. It is only allowed when the "sharedServiceName" attribute is set in the template being applied.The value MUST conform to the dc-display-name syntax (see Section 3). |
| Instance Id | instanceId | (OPTIONAL) Only applicable to templates supporting multiple instances (see "multiInstance" template property in [I-D.draft-ietf-dconn-domainconnect]). Allows for later removal of one template instance by DNS Providers storing this information.The value MUST conform to the dc-id syntax (see Section 3). |
An example call is below. In this example, it is contemplated that there are two variables in this template, "IP" and "RANDOMTEXT" which both require values. These variables are passed as name/value pairs.¶
POST /v2/domainTemplates/providers/exampleservice.example/services /template1/apply?IP=192.0.2.42&RANDOMTEXT=shm%3A1542108821%3AHello &force=1 HTTP/1.1 Host: connect.dnsprovider.example Authorization: Bearer mF_9.B5f-4.1JqM¶
The API MUST validate the access token, and that the domain belongs to the user and is represented by the token being presented. The "domain" and "host" values MUST match those that were authorized in the access token. Any errors with variables, conflicting templates, or problems with the state of the domain are returned; otherwise the template is applied.¶
Results of this call can include information indicating success or an error. Errors MUST be 400 status codes, with the following codes defined.¶
| Status | Response | Description |
|---|---|---|
| Success | 2xx | Any 200 level code MUST be considered a success. The response MAY be of status 200 with a response body, but also 204 without a body. |
| Bad Request | 400 | A response of a 400 indicates that the server cannot process the request because it was malformed or had errors. This response code is intended for programming errors. |
| Unauthorized | 401 | A response of a 401 indicates that caller is not authorized to make this call. This can be because the token was revoked, or other access issues. |
| Conflict | 409 | This indicates that the call was good, and the caller authorized, but the change could not be applied due to a conflicting template. Errors due to conflicts MUST NOT be returned when force is equal to 1. |
| Error | 4xx | Other 4xx error codes SHOULD be returned when something is wrong with the request that makes applying the template problematic; most often something that is wrong with the account and requires attention. |
When a 409 is returned, the body of the response SHOULD contain details of the conflicting records. If present this MUST be JSON containing the error code, a message suitable for developers, and an array of tuples containing the conflicting records type, host, and data element.¶
EXAMPLE: Example conflict response¶
{
"code": "409",
"message": "Conflicting records",
"records": [
{
"type": "CNAME",
"host": "www",
"data": "@"
},
{
"type": "A",
"host": "@",
"data": "random ip"
}
]
}¶
In this example, the Service Provider tried to apply a new hosting template. The domain had an existing service applied for hosting.¶
This call reverts the application of a specific template from a domain.¶
Implementation of this call is OPTIONAL. If not supported a 501 MUST be returned.¶
POST
{+urlAPI}/v2/domainTemplates/providers/{providerId}/services
/{serviceId}/revert{?domain,host,instanceId}¶
This API allows the removal of a template from a user domain/host using an OAuth request.¶
An example URL might look like:¶
POST https://connect.dnsprovider.example/v2/domainTemplates/providers /exampleservice.example/services/template1/revert?domain=example.com¶
Allowed parameters:¶
| Property | Key | Description |
|---|---|---|
| URL API | urlAPI | (REQUIRED) The base URL of the DNS Provider API, taken from the "urlAPI" field of the settings endpoint response (see Section 5). The value MUST be an absolute URI conforming to [RFC3986]. |
| Service Provider Id | providerId | (REQUIRED) Identifier of the Service Provider of the template to be reverted. The value MUST conform to the dc-id syntax (see Section 3). |
| Service Id | serviceId | (REQUIRED) Identifier of the template to be reverted. The value MUST conform to the dc-id syntax (see Section 3). |
| Domain | domain | (REQUIRED) The Zone Apex domain name being configured. The value MUST conform to the domain-name syntax (see Section 3). |
| Host | host | (OPTIONAL) The host name of the Sub Domain within the zone identified by "domain", as authorized in the token.When present, the value MUST be a single name conforming to domain-name (see Section 3) or an empty string. |
| Instance Id | instanceId | (OPTIONAL) Only applicable to templates supporting multiple instances (see "multiInstance" template property in [I-D.draft-ietf-dconn-domainconnect]).This value indicates an applied template instance to be removed. The value MUST conform to the dc-id syntax (see Section 3). |
The DNS Provider MUST be able to accept these on the query string or in the body of the POST with "application/json" encoding.¶
The DNS Provider MUST validate the access token and verify that the domain belongs to the user represented by the token. The "domain" and "host" values MUST match those that were authorized in the access token. The DNS Provider MUST further verify that the template identified by "providerId"/"serviceId" and optionally "instanceId" has been applied to the "domain"/"host"; if it has not, an error response with code 410 SHOULD be returned.¶
If "InstanceId" is provided only the single template instance which was applied with provided "InstanceId" MUST be removed, otherwise all instances of applied template MUST be removed.¶
The DNS Provider MUST remove all still active DNS Resource Records belonging to the identified template. Any other modification to the DNS Resource Records being a result of original template application, such as SPF record merging, MUST be reverted as well.¶
Response codes Success, Authorization, and Errors are identical to above with the addition of 410 and 501 codes.¶
Like all OAuth flows, the user may revoke the access at any time using UX at the DNS Provider site. As such the Service Provider needs to be aware that their access to the API may be denied at any time.¶
After the asynchronous flow completes, the Service Provider SHOULD verify that the expected DNS records are present in the zone by querying the authoritative DNS server for the domain. For DNS querying procedures (resolver selection, TTL considerations, retry intervals), refer to the Verification of Changes section in [I-D.draft-ietf-dconn-domainconnect].¶
DNS verification MUST be treated as the authoritative signal of success. A 2xx HTTP response to the apply request confirms that the DNS Provider accepted and processed the request. While this response cannot be tampered with by the user, it does not guarantee that the DNS zone has been updated; the DNS Provider may encounter an internal error after returning the response.¶
Receipt of the 2xx response MAY be used as a trigger to initiate DNS verification. However, the Service Provider MUST account for DNS propagation delay and MUST implement a retry mechanism with appropriate intervals until the expected records are observed or a timeout is reached.¶
The "urlAPI" value used by the asynchronous flow is obtained via DNS Provider discovery (see Section 5), which relies on a "_domainconnect" TXT record in the user's zone. A malicious actor who can create a domain with a false "_domainconnect" TXT record pointing to a server under their control can cause a Service Provider that uses the discovered "urlAPI" value to direct requests to that server.¶
This is most severe for the OAuth token exchange (see Section 6.4): when the "client_secret" is used in the token request, a spoofed "urlAPI" would cause the Service Provider to inadvertently expose the secret to the attacker-controlled server.¶
The subsequent API calls that use the access token - such as applying or revoking a template - do not transmit the "client_secret", so they do not carry the same secret-leakage risk. They are nonetheless subject to the same endpoint-spoofing concern, and directing them to an attacker-controlled server could disclose the access token or the contents of DNS change requests.¶
The Service Provider SHOULD therefore maintain the "urlAPI" endpoint as a stored, pre-registered value per DNS Provider for both the OAuth token request and the subsequent API calls, rather than using the value returned during DNS Provider discovery.¶
The phishing risks described in the Template Variable Phishing section of [I-D.draft-ietf-dconn-domainconnect] apply equally to the asynchronous flow. In particular, the "properties" parameter of the authorization request (see Section 6.3) supplies variable values at consent time, and a malicious actor could craft a consent URL substituting harmful values. The mitigations described in [I-D.draft-ietf-dconn-domainconnect] (disabling the synchronous flow via "syncBlock", digitally signing apply requests, and setting "warnPhishing") apply to the asynchronous flow as well.¶
IANA is requested to update the "urlAsyncUX" entry in the "Domain Connect Settings Properties" registry (created by [I-D.draft-ietf-dconn-domainconnect]) as follows:¶
| Property Name | Status | Kind | Reference |
|---|---|---|---|
"urlAsyncUX"
|
Active | IETF Standard | This document |
This section is to be removed before publishing as an RFC.¶
dc-scope, dc-force), and references; rebased shared definitions on [I-D.draft-ietf-dconn-domainconnect].¶
"urlAPI" value into Security Considerations and expanded it to cover both the OAuth token request and the subsequent API calls.¶