---
title: "ezgh dns records set"
description: "Create or replace a record set."
---

> 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 set

{/* 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 set <zone> <name> <type> <value>... [--ttl seconds] [flags]
```

Create the record set at a name and type, or replace it: the values given become all its values. The name is relative to the zone, @ for the zone itself. Types are A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR and DS. TXT values are plain text, without surrounding quotes.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--ttl` | int |  | seconds, 60 to 86400 (default: the set's current TTL, or 300 for a new set) |

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

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