mijn.host API
  1. Domains
mijn.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • List domains
        GET
      • Get domain
        GET
      • Update domain
        PUT
      • Cancel domain
        DELETE
      • Get DNS records
        GET
      • Update DNS records
        PUT
      • Update single DNS record
        PATCH
      • Get auth code
        GET
      • Cancel domain deletion
        PUT
    • Contacts
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • Nameservers
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • DNS templates
      • List templates
      • Create template
      • Update template
      • Get template
    • Availability
      • Check domain availability
    • Order
      • Order domain
  1. Domains

Get DNS records

GET
/domains/{domain}/dns
Retrieve DNS records of specific domain.

Request

Authorization
Add parameter in header
API-Key
Example:
API-Key: ********************
Path Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mijn.host/api/v2/domains/domain.com/dns' \
--header 'Accept;' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>'

Responses

🟢200OK
application/json
Body

Example
{
    "status": 200,
    "status_description": "Request successful",
    "data": {
        "domain": "domain.com",
        "records": [
            {
                "type": "A",
                "name": "domain.com.",
                "value": "135.226.123.12",
                "ttl": 900
            },
            {
                "type": "AAAA",
                "name": "domain.com.",
                "value": "2009:21d0:322:6100::5:c92b",
                "ttl": 900
            },
            {
                "type": "MX",
                "name": "domain.com.",
                "value": "10 mail.domain.com.",
                "ttl": 900
            },
            {
                "type": "TXT",
                "name": "domain.com.",
                "value": "v=spf1 include:spf.mijn.host ~all",
                "ttl": 900
            }
        ]
    }
}
🟠400Invalid input
Modified at 2024-09-02 14:01:29
Previous
Cancel domain
Next
Update DNS records
Built with