Get nameserver IP addresses for a domain

Look up the nameservers associated with a specific domain. This is useful for troubleshooting DNS issues or verifying domain configurations.

VPS Services VM

Context

Used in the dashboard

/cart/cart /cart/en/cart /cart /cart/en

Headers

Accept Example
Content-Type Example

Body

required
application/json
domain string required · Example: example.com

Responses

200
data object required
data.domain string required · Example: example.com
data.nameservers array<string> required · Example: ["example.com","example.com"]
requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

success boolean required · Example: true

True for successful responses.

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

400
code string required · Example: BAD_REQUEST

Machine-readable error code.

error string required · Example: Bad Request

HTTP status title (e.g. 'Bad Request').

message string required · Example: DNS lookup failed for domain: example.com

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

404
code string required · Example: NOT_FOUND

Machine-readable error code.

error string required · Example: Not Found

HTTP status title (e.g. 'Bad Request').

message string required · Example: No nameservers found for domain: example.com not found

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

timestamp string required · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

POST https://cloud.hostup.se/api/lookup-nameservers
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/lookup-nameservers" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example.com"
  }'
Response
{
  "success": true,
  "timestamp": "2026-02-10T00:00:00.000Z",
  "requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
  "data": {
    "domain": "example.com",
    "nameservers": [
      "example.com",
      "example.com",
      {
        "_truncated": "... and 2 more items"
      }
    ]
  }
}
Request Body Example 1
{
  "domain": "example.com"
}