DigitalOcean-public.v2-new_Domains
Retrieve an Existing Domain
To get details about a specific domain, send a GET request to /v2/domains/$DOMAIN_NAME.
get/v2/domains/{domain_name}
Path parameters
domain_namestring required
The name of the domain itself.
Response
The response will be a JSON object with a key called domain. The value of this will be an object that contains the standard attributes defined for a domain.
Example response
{
"domain": {
"name": "example.com",
"ttl": 1800,
"zone_file": "$ORIGIN example.com.\n$TTL 1800\nexample.com. IN SOA ns1.digitalocean.com. hostmaster.example.com. 1415982611 10800 3600 604800 1800\nexample.com. 1800 IN NS ns1.digitalocean.com.\nexample.com. 1800 IN NS ns2.digitalocean.com.\nexample.com. 1800 IN NS ns3.digitalocean.com.\nexample.com. 1800 IN A 1.2.3.4\n"
}
}