---
title: "ezgh dns records scan"
description: "Find a domain's existing records and load them into a zone."
---

> 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 dns records scan

{/* 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 dns records scan <zone> [--yes] [flags]
```

Ask the nameservers your domain uses now for common names and types, and create or replace the record sets found. DNS can't list a zone, so check the result for names it wouldn't guess: an import of a zone file from your provider is complete, and a scan isn't. It shows what would change and what it left out, then asks on a terminal; `--yes` confirms otherwise. Sets it doesn't find stay as they are. A domain that isn't delegated yet, or that already uses EZGH DNS, finds nothing.

Part of [`ezgh dns records`](/cli/reference/dns-records).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--yes` | boolean |  | don't ask |

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

Source: https://docs.ezghcloud.com/cli/reference/dns-records-scan/index.mdx
