1. Dynamic DNS
my.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
    • Changelog
  • Domains
    • Domains
      • DNS
        • Zone
          • Get DNS zonefile
          • Import DNS zonefile
        • Dynamic DNS
          • List Dynamic DNS credentials
            GET
          • Create Dynamic DNS credential
            POST
          • Delete Dynamic DNS credential
            DELETE
          • Reset Dynamic DNS password
            POST
        • Get DNS records
          GET
        • Update DNS records
          PUT
        • Update single DNS record
          PATCH
        • Delete single DNS record
          DELETE
        • Add single DNS record
          POST
        • Get DNS history
          GET
      • List domains
        GET
      • Get domain
        GET
      • Update domain
        PUT
      • Cancel domain
        DELETE
      • Cancel domain deletion
        PUT
      • Get auth code
        GET
      • Retry registration or transfer
        POST
      • Resend owner verification
        POST
    • Contacts
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
      • Get profile
      • Update profile
    • Nameservers
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • DNS templates
      • List templates
      • Get template
      • Create template
      • Update template
      • Delete template
    • Availability
      • Check domain availability
      • Check availability of several domains
    • Order
      • Order domain
    • Extensions
      • List domain extensions
      • Get domain extension
  • Virtual Private Servers
    • Backups
      • List backups
      • Create backup
      • Restore backup
      • Delete backup
    • SSH keys
      • List SSH keys
      • Delete SSH key
      • Add SSH key
    • Firewall
      • Get VPS firewall
      • Update VPS firewall
    • VPC
      • Get VPS VPC
      • Create VPS VPC
      • Add VPC subnet
      • Attach VPC subnet
    • Order
      • List VPS products
      • Order VPS
    • Floating IPs
      • List floating IPs
      • Reserve floating IP
      • Attach floating IP
      • Detach floating IP
      • Delete floating IP
    • List VPS instances
    • VPS details
    • Update VPS
    • Restart VPS
    • Enable or disable rescue mode
    • Cancel VPS
    • Cancel VPS deletion
    • List available OS images
    • Reinstall VPS
    • Start VPS
    • Stop VPS
    • Power off VPS
    • Reset VPS root password
    • Change VPS hostname
    • Get VPS statistics
    • List VPS licenses
  • Certificates
    • List certificates
    • Get certificate
    • List certificate products
    • Order certificate
    • Generate CSR
    • Request certificate
  • Orders
    • List orders
    • Get order
    • Update order
  • Affiliate
    • Commissions
      • List affiliate commissions
      • Get affiliate commission
    • Payments
      • List affiliate payments
      • Get affiliate payment
  • Account
    • Profile
      • Get account profile
      • Update account profile
    • Payment methods
      • List payment methods
      • Update default payment method
    • Invoices
      • List invoices
      • Get invoice
      • Download invoice PDF
    • Users
      • List account users
      • Get account user
      • Create account user
      • Update account user
    • Tickets
      • List support tickets
      • Get support ticket
      • Create support ticket
      • Reply to support ticket
  • Tools
    • Get your IP and customer number
  1. Dynamic DNS

Create Dynamic DNS credential

POST
/domains/{domain}/dns/dynamic
Create a Dynamic DNS credential for one hostname of the domain. The password is in this response only; store it, because it cannot be shown again (reset it if it is lost). Not available for domains whose DNS is managed through Cloudflare.

Request

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

Header Params

Body Params application/json

Example
{
    "hostname": "home",
    "label": "Router at home",
    "allow_ipv4": true,
    "allow_ipv6": true
}

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 'https://mijn.host/api/v2/domains/domain.com/dns/dynamic' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "hostname": "home",
    "label": "Router at home",
    "allow_ipv4": true,
    "allow_ipv6": true
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "status": 200,
    "status_description": "Dynamic DNS credential created",
    "data": {
        "id": 12,
        "label": "Router at home",
        "hostname": "home",
        "fqdn": "home.domain.com",
        "username": "ddns_a1b2c3d4e5f6",
        "password": "q8Vx2LmB0rTnKp4ZyW7cHd1e",
        "allow_ipv4": true,
        "allow_ipv6": true,
        "force_wildcard": false,
        "active": true,
        "last_ipv4": null,
        "last_ipv6": null,
        "last_update_at": null,
        "last_status": null,
        "created_at": "2026-11-10T09:43:00+01:00",
        "update_url": "https://ddns_a1b2c3d4e5f6:q8Vx2LmB0rTnKp4ZyW7cHd1e@mijn.host/nic/update?hostname=home.domain.com&myip=&myipv6="
    }
}
🟠400Invalid hostname
🟠400Allow IPv4, IPv6 or both
🟠400Dynamic DNS is not available for domains whose DNS is managed through Cloudflare
🟠400Invalid input
🟠400SSL connection is required
🟠400No domain set
🟠400You have no access to this resource.
🟠401No valid API key set
🟠401API key has expired
🟠401Remote IP address is not found in the API key whitelist
🔴500Error
Modified at 2026-11-13 09:40:27
Previous
List Dynamic DNS credentials
Next
Delete Dynamic DNS credential
Built with