# space.highport.sites.resolveDomain

> Published by [lexicons.highport.space](https://lexicon.garden/identity/did:plc:ciygg5hma4q7ah2kxaszkyob)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.sites.resolveDomain)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.sites.resolveDomain/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.sites.resolveDomain/examples)

## Definitions

### `space.highport.sites.resolveDomain`

**Type**: `query`

Look up which identity and record serve a domain. Useful for checking who owns a site.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `domain` | `string` | Yes | The hostname, in lowercase IDNA A-label form. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The identity serving the domain. |
| `uri` | `string` (at-uri) | Yes | The serving record, in space form for a domain registered to a space. |
| `space` | `string` (at-uri) | No | Present for a domain registered to a space. |

#### Errors

- **SiteNotFound**: No active site serves that domain.

## Raw Schema

```json
{
  "id": "space.highport.sites.resolveDomain",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "SiteNotFound",
          "description": "No active site serves that domain."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "uri"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "description": "The identity serving the domain."
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "The serving record, in space form for a domain registered to a space."
            },
            "space": {
              "type": "string",
              "format": "at-uri",
              "description": "Present for a domain registered to a space."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 253,
            "description": "The hostname, in lowercase IDNA A-label form."
          }
        }
      },
      "description": "Look up which identity and record serve a domain. Useful for checking who owns a site."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
