deSEC MCP by usefulapi

v1.28.1
io.usefulapi/desec Checked 2 days ago Published 1 day ago

Read deSEC domains, DNSSEC keys, zone files and RRsets; create or replace one DNS record set.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

desec_list_domains List domains

List the DNS domains (zones) in this deSEC account, newest first, with creation and last-published times and minimum TTL. DNSSEC keys are omitted here (see desec_get_domain). Use owns_qname to find which of your domains is responsible for a DNS name (for example before adding a record for www.dev.example.net). Up to 500 per page. GET /domains/.

ParameterTypeDescription
cursorstringOpaque cursor from a previous reply's next_cursor. Omit for the first page.
owns_qnamestringOnly the domain that is authoritative for this DNS name (the longest matching zone you own).

desec_get_domain Get domain

One domain with its DNSSEC key material: the DNSKEY and the DS records to publish at the registrar for the chain of trust, plus minimum TTL and publication times. GET /domains/{name}/.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).

desec_export_zonefile Export zonefile

The whole zone as a plain-text BIND-format zonefile (all RRsets except DNSSEC types). Handy as a backup before changing records. Counts as an expensive deSEC operation (300/min). GET /domains/{name}/zonefile/.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).

desec_list_rrsets List RRsets

List the DNS records of a domain as RRsets (all records of one name and type, sharing one TTL), newest first. Filter by type and/or subname. Up to 500 per page. GET /domains/{name}/rrsets/.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).
cursorstringOpaque cursor from a previous reply's next_cursor. Omit for the first page.
subnamestringOnly RRsets at this subname ("" or "@" = the zone apex). Omit to include every subname.
typestringOnly RRsets of this type, e.g. A, MX, TXT.

desec_get_rrset Get RRset

One RRset by subname and type, e.g. the A records of "www" or the MX records of the apex. GET /domains/{name}/rrsets/{subname}/{type}/.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).
type *stringRecord type, e.g. A, AAAA, CNAME, MX, TXT, CAA, SRV, TLSA.
subnamestringSubname relative to the domain: "www", "_443._tcp.www", "*" for a wildcard. Empty or "@" = the zone apex. Never the full name.

desec_create_rrset Create RRset

WRITE: create ONE new RRset (a set of DNS records of one type at one name) in a domain. It goes live in DNS immediately and a wrong record can take a site or mail offline. Fails if an RRset with this subname and type already exists (use desec_replace_rrset for that) or if a CNAME would conflict with other records. Never touches the apex NS or DNSSEC records and cannot delete anything. Subject to deSEC's write limits (15/min, 300/day per domain). POST /domains/{name}/rrsets/.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).
records *arrayRecord contents in zone-file format, at least one (an empty list would delete the RRset and is refused). Names need a trailing dot ("10 mx.example.com."), TXT needs quotes ("\"v=spf1 -all\"").
ttl *integerTTL in seconds, at most 86400. Not below the domain's minimum_ttl (usually 3600): deSEC rejects lower values.
type *stringRecord type (uppercase). DNSSEC types and SOA are managed by deSEC and cannot be written.
subnamestringSubname relative to the domain: "www", "_443._tcp.www", "*" for a wildcard. Empty or "@" = the zone apex. Never the full name.

desec_replace_rrset Replace RRset

WRITE (overwrites): set ONE RRset to exactly the given TTL and records, creating it if it does not exist and REPLACING all its current records if it does. It goes live in DNS immediately; a wrong value can take a site or mail offline. The previous RRset is read first and returned as `previous` so the change can be undone with another call. An empty record list is refused (this tool never deletes), and the apex NS and DNSSEC records cannot be changed. Subject to deSEC's write limits (15/min, 300/day per domain). PUT /domains/{name}/rrsets/ with a one-element array.

ParameterTypeDescription
domain *stringDomain name in this deSEC account, e.g. example.com (see desec_list_domains).
records *arrayRecord contents in zone-file format, at least one (an empty list would delete the RRset and is refused). Names need a trailing dot ("10 mx.example.com."), TXT needs quotes ("\"v=spf1 -all\"").
ttl *integerTTL in seconds, at most 86400. Not below the domain's minimum_ttl (usually 3600): deSEC rejects lower values.
type *stringRecord type (uppercase). DNSSEC types and SOA are managed by deSEC and cannot be written.
subnamestringSubname relative to the domain: "www", "_443._tcp.www", "*" for a wildcard. Empty or "@" = the zone apex. Never the full name.