For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get DNS records

Retrieve DNS zone records for a specific domain. Use this endpoint to view current DNS configuration for domain management.

Get DNS records

get

Retrieve DNS zone records for a specific domain.

Use this endpoint to view current DNS configuration for domain management.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
domainstringRequired

Domain name

Example: mydomain.tld
Responses
200

Success response

application/json
namestringOptional

Name of the record (use @ for wildcard name)

Example: www
ttlintegerOptional

TTL (Time-To-Live) of the record

Example: 14400
typestring · enumOptional

Type of the record

Example: APossible values:
get/api/dns/v1/zones/{domain}
GET /api/dns/v1/zones/{domain} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "name": "www",
    "records": [
      {
        "content": "mydomain.tld.",
        "is_disabled": false
      }
    ],
    "ttl": 14400,
    "type": "A"
  }
]

Last updated

Was this helpful?