---
title: "Get the domain from a FQDN."
method: GET
path: "/api/tools/domain/{fqdn}"
tags: ["tools"]
---

# Get the domain from a FQDN.

`GET /api/tools/domain/{fqdn}`

Get the domain part (eg.: `elmasy.com`) from a FQDN (eg.: `columbus.elmasy.com`).

If `Accept` header is `text/plain`, returns the result as a string.

## Path parameters

- `fqdn` string, required

## Response `200`

Success

- Result
  - `result` string

## Other responses

- `400` — Bad Request. See the error message.
- `404` — Domain not found
- `502` — Bad Gateway. Upstream failed.
- `504` — Gateway Timeout. Upstream response takes too long.

---

[API](https://skmtc.net/elmasy-com/apis/columbus-api.md) · [All operations](https://skmtc.net/elmasy-com/apis/columbus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elmasy-com/columbus-api/versions/afcfa121a5e2/schema)
