# services.<name>.domains

> Custom domains.

Custom domains. They attach to the production environment unless set under `environments.<env>.services.<svc>.domains`.

- **Type:** list of [hostname](/docs/manifest/#hostname) or object
- **Since:** manifest v1

## Example

```yaml
services:
  web:
    domains:
      - www.primecarers.co.uk
      - primecarers.co.uk
```

## Fields

### host

`services.<name>.domains[].host`

Hostname.

- **Type:** [hostname](/docs/manifest/#hostname)
- **Required:** yes
- **Since:** manifest v1

```yaml
services:
  web:
    domains:
      - host: primecarers.co.uk
```

### redirect_to

`services.<name>.domains[].redirect_to`

Redirect every request to this hostname (permanent redirect), instead of serving.

- **Type:** [hostname](/docs/manifest/#hostname)
- **Since:** manifest v1

```yaml
services:
  web:
    domains:
      - redirect_to: www.primecarers.co.uk
```

## See also

- [services](/docs/manifest/services/): all fields of `services`
- [guv.yaml reference](/docs/manifest/)
