Skip to main content

dnssec

Creates, updates, deletes, gets or lists a dnssec resource.

Overview

Namednssec
TypeResource
Idcloudflare.dns.dnssec

Fields

The following fields are returned by SELECT queries:

DNSSEC Details response.

NameDatatypeDescription
algorithmstringAlgorithm key code. (example: 13)
digeststringDigest hash. (example: 48E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45)
digest_algorithmstringType of digest algorithm. (example: SHA256)
digest_typestringCoded type for digest algorithm. (example: 2)
dnssec_multi_signerbooleanIf true, multi-signer DNSSEC is enabled on the zone, allowing multiple providers to serve a DNSSEC-signed zone at the same time. This is required for DNSKEY records (except those automatically generated by Cloudflare) to be added to the zone. See Multi-signer DNSSEC for details.
dnssec_presignedbooleanIf true, allows Cloudflare to transfer in a DNSSEC-signed zone including signatures from an external provider, without requiring Cloudflare to sign any records on the fly. Note that this feature has some limitations. See Cloudflare as Secondary for details.
dnssec_use_nsec3booleanIf true, enables the use of NSEC3 together with DNSSEC on the zone. Combined with setting dnssec_presigned to true, this enables the use of NSEC3 records when transferring in from an external provider. If dnssec_presigned is instead set to false (default), NSEC3 records will be generated and signed at request time. See DNSSEC with NSEC3 for details.
dsstringFull DS record. (example: example.com. 3600 IN DS 16953 13 2 48E939042E82C22542CB377B580DFDC52A361CEFDC72E7F9107E2B6BD9306A45)
flagsnumberFlag for DNSSEC record.
key_tagnumberCode for key tag.
key_typestringAlgorithm key type. (example: ECDSAP256SHA256)
modified_onstring (date-time)When DNSSEC was last modified. (example: 2014-01-01T05:20:00Z)
public_keystringPublic key for DS record. (example: oXiGYrSTO+LSCJ3mohc8EP+CzF9KxBj8/ydXJ22pKuZP3VAC3/Md/k7xZfz470CoRyZJ6gV6vml07IC3d8xqhA==)
statusstringStatus of DNSSEC, based on user-desired state and presence of necessary records. (active, pending, disabled, pending-disabled, error) (example: active)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idDetails about DNSSEC status and configuration.
editupdatezone_idEnable or disable DNSSEC.
deletedeletezone_idDelete DNSSEC.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples

Details about DNSSEC status and configuration.

SELECT
algorithm,
digest,
digest_algorithm,
digest_type,
dnssec_multi_signer,
dnssec_presigned,
dnssec_use_nsec3,
ds,
flags,
key_tag,
key_type,
modified_on,
public_key,
status
FROM cloudflare.dns.dnssec
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples

Enable or disable DNSSEC.

UPDATE cloudflare.dns.dnssec
SET
dnssec_multi_signer = {{ dnssec_multi_signer }},
dnssec_presigned = {{ dnssec_presigned }},
dnssec_use_nsec3 = {{ dnssec_use_nsec3 }},
status = '{{ status }}'
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Delete DNSSEC.

DELETE FROM cloudflare.dns.dnssec
WHERE zone_id = '{{ zone_id }}' --required
;