GET /dns/{id}

View and manage a domain and the records for it.

Returns a list of all of the dns records.

Path parameters

  • id integer Required

    The order ID number.

Responses

  • 200 application/json

    The dns records for a given domain.

    Hide response attributes Show response attributes object
    • id string Required

      The ID of the DNS Record.

    • domain_id string Required

      The ID of the Domain this is a record of.

    • name string Required
    • type string Required

      The type fo DNS record such as A, MX, NS.

    • content string Required

      The content of the record, such as the IP address or hsotname.

    • ttl string Required

      Time To Live (seconds)

    • prio string Required

      Priority

    • disabled string Required
    • ordername string Required

      Alternate name to use for sorting

    • auth string Required
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
GET /dns/{id}
curl \
 --request GET 'https://my.interserver.net/apiv2/dns/{id}' \
 --header "X-API-KEY: $API_KEY"
Response examples (200)
[
  {
    "id": "473",
    "ttl": "86400",
    "auth": "1",
    "name": "hussfamily.com",
    "prio": "0",
    "type": "NS",
    "content": "cdns1.interserver.net",
    "disabled": "0",
    "domain_id": "68",
    "ordername": ""
  },
  {
    "id": "474",
    "ttl": "86400",
    "auth": "1",
    "name": "hussfamily.com",
    "prio": "0",
    "type": "NS",
    "content": "cdns2.interserver.net",
    "disabled": "0",
    "domain_id": "68",
    "ordername": ""
  },
  {
    "id": "475",
    "ttl": "86400",
    "auth": "1",
    "name": "hussfamily.com",
    "prio": "0",
    "type": "A",
    "content": "64.20.35.186",
    "disabled": "0",
    "domain_id": "68",
    "ordername": ""
  }
]
Response examples (401)
{
  "code": "string",
  "message": "string"
}