Skip to content

Commit 9d2a601

Browse files
dnsesec-for-primary: replace create DNSKEY example
1 parent b9c1030 commit 9d2a601

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/content/docs/dns/zone-setups/zone-transfers/cloudflare-as-primary/dnssec-for-primary.mdx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,24 @@ Note that:
3838

3939
2. Add the ZSK(s) of your external provider(s) to Cloudflare by creating a DNSKEY record on your zone.
4040

41-
```bash
42-
curl 'https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_records' \
43-
--header "X-Auth-Email: <EMAIL>" \
44-
--header "X-Auth-Key: <API_KEY>" \
45-
--header "Content-Type: application/json" \
46-
--data '{
47-
"type": "DNSKEY",
48-
"name": "<ZONE_NAME>",
49-
"data": {
50-
"flags": 256,
51-
"protocol": 3,
52-
"algorithm": 13,
53-
"public_key": "<PUBLIC_KEY>"
54-
},
55-
"ttl": 3600
56-
}'
57-
```
41+
<APIRequest
42+
path="/zones/{zone_id}/dns_records"
43+
method="POST"
44+
json={[
45+
{
46+
"type": "DNSKEY",
47+
"name": "<ZONE_NAME>",
48+
"content": "<FORMATTED_DNSKEY_CONTENT>",
49+
"data": {
50+
"flags": 256,
51+
"protocol": 3,
52+
"algorithm": 13,
53+
"public_key": "<PUBLIC_KEY>"
54+
},
55+
"ttl": 3600,
56+
},
57+
]}
58+
/>
5859

5960
3. Once the DNSKEY record is transferred out from Cloudflare to your secondary provider, get Cloudflare's ZSK and manually add it to the DNSKEY record.
6061

0 commit comments

Comments
 (0)