API-Dokumentation

DNS-Einträge auflisten

Gibt alle DNS-Einträge einer Domain zurück. Dies ist eine schlanke Alternative zum vollständigen Domain-Details-Endpunkt, wenn du nur die DNS-Einträge brauchst.

Anfrage

GET /api/v1/domains/{id}/dns

Erforderlicher Scope: domains:read

Pfadparameter

Parameter Typ Beschreibung
id string Die Domain-ID

Header

Header Erforderlich Wert
Authorization Ja Bearer DEIN_API_SCHLÜSSEL

Antwort

{
  "data": [
    {
      "id": "abc123",
      "type": "A",
      "name": "@",
      "value": "45.84.196.79",
      "ttl": 3600,
      "priority": null
    },
    {
      "id": "def456",
      "type": "AAAA",
      "name": "@",
      "value": "2a03:4000:64:e8b::1",
      "ttl": 3600,
      "priority": null
    },
    {
      "id": "ghi789",
      "type": "MX",
      "name": "@",
      "value": "mail.example.com",
      "ttl": 3600,
      "priority": 10
    },
    {
      "id": "jkl012",
      "type": "TXT",
      "name": "@",
      "value": "v=spf1 include:_spf.google.com ~all",
      "ttl": 3600,
      "priority": null
    }
  ]
}

Eintrag-Felder

Feld Typ Beschreibung
id string Eintrags-ID
type string Eintragstyp: A, AAAA, CNAME, ALIAS, MX, TXT, NS, SRV, CAA, TLSA, SSHFP
name string Eintragsname (z.B. @, www, mail, _dmarc)
value string Eintragswert (IP-Adresse, Hostname, TXT-Inhalt usw.)
ttl number Time to Live in Sekunden
priority number | null Priorität (für MX- und SRV-Einträge)

Fehler

Status Code Beschreibung
404 NOT_FOUND Domain nicht gefunden oder kein Zugriff

Beispiel

curl https://hosting.site.quest/api/v1/domains/6997649fd6212ab98fbb7289/dns \
  -H "Authorization: Bearer DEIN_API_SCHLÜSSEL"

MCP

Diese Daten sind auch über das MCP-Tool list_dns_records verfügbar.