---
title: "ezgh dns records import"
description: "Load a zone file 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 import

{/* 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 import <zone> <file> [--yes] [flags]
```

Read a BIND zone file, - for standard input, and create or replace the record sets it holds. It shows what would change and what it left out, then asks on a terminal; `--yes` confirms otherwise. Sets the file doesn't mention stay as they are. The SOA and NS at @ are managed for you, and DNSSEC records are made by signing, so they're left out. $INCLUDE isn't read.

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-import/index.mdx
