# Get DNS ID

Returns the partially random string used when generating host names for the authenticated account.

Required permission: Project > Projects > Manage > Read

**Response body:**

{object}
- `data`: {object}
  - `dns`: (string) (required) The partially random string associated with the authenticated account, used for generating DNS entries.

## API reference

GET /v1/dns-id

GET /v1/teams/{teamId}/dns-id

### Example Response

200 OK: Data about the DNS ID.

```json
{
  "data": {
    "dns": "exam-1234"
  }
}
```

## CLI reference

$ northflank get dns-id

Options:

- `--verbose `: Verbose output

- `--quiet `: No console output

- `-o --output <format>`: Output formatting 

### Example Response

 Data about the DNS ID.

```json
{
  "dns": "exam-1234"
}
```

## JavaScript client reference

### Example request



```javascript
await apiClient.get.dnsId({});
```

### Example Response

 Data about the DNS ID.

```json
{
  "data": {
    "dns": "exam-1234"
  },
  "rawResponse": "...",
  "request": "...",
  "error": "..."
}
```

Previous: [Delete container snapshot](/docs/v1/api/team/container-snapshots/delete-container-snapshot)

Next: [List domains](/docs/v1/api/team/domains/list-domains)