Skip to content

Commit 6fab25c

Browse files
Revert "dnsesec-for-primary: replace create DNSKEY example"
This reverts commit 9d2a601.
1 parent 9d2a601 commit 6fab25c

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

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

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,23 @@ 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-
<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-
/>
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+
```
5958

6059
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.
6160

0 commit comments

Comments
 (0)