---
title: "ezgh domains nameservers"
description: "Move a domain to EZGH DNS or to nameservers of your own."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh domains nameservers

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh domains nameservers <domain> (--ezgh | --external h1,h2…) [--wait] [flags]
```

Move a domain to EZGH DNS (`--ezgh`: the domain's zone in the project, made if it's gone) or to 2 to 13 nameservers of your own (`--external`). Moving off EZGH DNS turns DNSSEC off first, which takes about two days; the zone and its records stay.

Part of [`ezgh domains`](/cli/reference/domains).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--external` | strings, comma-separated or repeated |  | 2 to 13 nameservers of your own |
| `--ezgh` | boolean |  | use EZGH DNS |
| `--wait` | boolean |  | wait until it's done, and print the domain then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/domains-nameservers/index.mdx
