DNS API-Referenz
v1.6.2
Upsert DNSSEC configuration
Enable, disable, or update registry DNSSEC for the specified domain. Use
mode=regfish only when the domain uses regfish authoritative nameservers. Use mode=external only when DNSSEC data must be supplied for external nameservers. Use mode=none together with state=disabled to disable registry DNSSEC. The response may already be final, or it may include a pending_job while the registry or DNS delegation is still converging. If the update cannot be completed, the response returns the last stable DNSSEC state.PUT
/dns/{domain}/dnssec
DomainDNSSECByDomain
Authentifizierung
Parameter
Name
Typ
Format
Pflicht
Description
domain
string
-
Pflicht
Fully Qualified Domain Name.
Request Body
Keine Beschreibung in der Spezifikation vorhanden.
dnssecRequestdnssecRequest
{
"mode": "none",
"state": "disabled"
}Felder
Name
Typ
Format
Pflicht
Description
mode
string
-
Pflicht
Requested DNSSEC operating mode. - `none`: no registry DNSSEC should remain active - `regfish`: regfish signs the zone and manages registry trust anchors - `external`: the caller supplies DNSSEC records for external authoritative nameservers
state
string
-
Pflicht
Desired high-level DNSSEC state.
verify_after_apply
boolean
-
Optional
When true, the API immediately refreshes registry state and checks DNS delegation after the update.
records
array<object>
-
Optional
Required for `mode=external,state=enabled`. Ignored for regfish-managed activation and for disable operations.
records[].kind
string
-
Pflicht
-
records[].key_tag
integer
-
Optional
-
records[].flags
integer
-
Optional
-
records[].protocol
integer
-
Optional
-
records[].algorithm
integer
-
Pflicht
-
records[].digest_type
integer
-
Optional
-
records[].digest
string
-
Optional
-
records[].public_key
string
-
Optional
-
records[].comment
string
-
Optional
-
Request-Beispiel
PUT
curl --request PUT \
--url 'https://api.regfish.com/dns/www.example.com/dnssec' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"mode": "none",
"state": "disabled"
}'Responses
200
DNSSEC configuration accepted
Response-Beispiel 200
{
"success": true,
"code": 0,
"response": {
"configured": true,
"dnssec_state": "active",
"mode": "none",
"desired_state": "disabled",
"live_state": "disabled",
"capabilities": {
"supported": true,
"provider": "example",
"mode_regfish_available": true,
"mode_external_available": true,
"accepted_record_kinds": [
"ds"
],
"min_records": 1,
"accepted_algorithms": [
1
]
},
"desired_records": [
{
"kind": "ds",
"algorithm": 1
}
],
"live_records": [
{
"kind": "ds",
"algorithm": 1
}
],
"using_regfish_nameservers": true,
"legacy_mode": true,
"zone_signed": true,
"zone_pending_disable": true
}
}400
Invalid DNSSEC payload
Response-Beispiel 400
{
"success": false,
"message": "Invalid DNSSEC payload",
"error": "Invalid DNSSEC payload"
}401
Unauthorized
Response-Beispiel 401
{
"success": false,
"message": "Unauthorized",
"error": "Unauthorized"
}404
Domain not found
Response-Beispiel 404
{
"success": false,
"message": "Domain not found",
"error": "Domain not found"
}409
DNSSEC cannot be applied in the requested mode or provider state
Response-Beispiel 409
{
"success": false,
"message": "DNSSEC cannot be applied in the requested mode or provider state",
"error": "DNSSEC cannot be applied in the requested mode or provider state"
}417
DNSSEC record set is invalid for this TLD or provider
Response-Beispiel 417
{
"success": false,
"message": "DNSSEC record set is invalid for this TLD or provider",
"error": "DNSSEC record set is invalid for this TLD or provider"
}502
Registry-side DNSSEC operation failed
Response-Beispiel 502
{
"success": false,
"message": "Registry-side DNSSEC operation failed",
"error": "Registry-side DNSSEC operation failed"
}Verwandte Modelle
baseResult
baseResult
dnssecCapabilities
dnssecCapabilities
dnssecDisplayState
High-level DNSSEC status.
dnssecJobResponse
dnssecJobResponse
dnssecMode
Requested DNSSEC operating mode. - `none`: no registry DNSSEC should remain active - `regfish`: regfish signs the zone and manages registry trust anchors - `external`: the caller supplies DNSSEC records for external authoritative nameservers
dnssecRecord
dnssecRecord
dnssecRecordKind
dnssecRecordKind
dnssecRequest
dnssecRequest
dnssecResponse
dnssecResponse
dnssecState
Fine-grained registry DNSSEC state.
Error
Error
fqdn_relaxed
Fully Qualified Domain Name.
Community
Werden Sie ein Teil der Community
Das DNS API von regfish ist die perfekte Lösung für Entwickler, die ihre Domains und DNS-Zonen automatisieren möchten. Werden Sie Teil der Community und profitieren Sie von den Vorteilen der DNS-Automatisierung. Das DNS API steht jedem regfish-Kunden kostenlos zur Verfügung.