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

# nebius dns record create

## Name

`nebius dns record create`

Creates a DNS record.

## Synopsis

```
nebius dns record create
  --data [required]
  --deletion-protection
  --labels
  --name
  --parent-id [required]
  --relative-name [required]
  --resource-version
  --ttl
  --type [required]
  --async
  -i, --interactive
```

## Options

`--data` (string)* \[required]*

Record data in text format\


This should be the RDATA part of this Resource Record's\

[presentation (zonefile) format](https://datatracker.ietf.org/doc/html/rfc9499#name-resource-records).\

E.g., `10 xyz.tuv` for a `@ 600 IN MX 10 xyz.tuv.` resource record in a zonefile.

`--deletion-protection` (bool)

Mark this record as delete-protected\

Delete-protected records can *only* be deleted by explicitly calling `RecordService/Delete` API with `force` flag set to `true`.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--relative-name` (string)* \[required]*

Zone-relative name of this record (e.g., `www` for `www.<parent zone's domain name>`)\

Use `@` for records in zone apex (that is, records that have the same domain name as the zone itself)\

To see the resolved absolute domain name, see `Record.status.effective_fqdn`.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--ttl` (int64)

Record TTL. If absent or negative, will be assumed to be the default value (`600`).

`--type` (string)* \[required]*

Record type.

A value must be one of:

<ul>
  <li>
    `a`
  </li>

  <li>
    `aaaa`
  </li>

  <li>
    `ptr`
  </li>

  <li>
    `cname`
  </li>

  <li>
    `mx`
  </li>

  <li>
    `txt`
  </li>

  <li>
    `srv`
  </li>

  <li>
    `ns`
  </li>

  <li>
    `soa`
  </li>

  <li>
    `caa`
  </li>

  <li>
    `svcb`
  </li>

  <li>
    `https`
  </li>
</ul>

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {                // [required]
>                                // Metadata for the DNS record to create
>                                // The only required field is `metadata.parent_id`, which must be set to the ID of this record's parent DNS zone.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {                      // [required]
>                                  // Specification for the DNS record to create.
>     "data": string,              // [required]
>                                  // Record data in text format
>                                  // 
>                                  // This should be the RDATA part of this Resource Record's
>                                  // [presentation (zonefile) format](https://datatracker.ietf.org/doc/html/rfc9499#name-resource-records).
>                                  // E.g., `10 xyz.tuv` for a `@ 600 IN MX 10 xyz.tuv.` resource record in a zonefile.
>     "deletion_protection": bool, // Mark this record as delete-protected
>                                  // Delete-protected records can *only* be deleted by explicitly calling `RecordService/Delete` API with `force` flag set to `true`.
>     "relative_name": string,     // [required] [immutable]
>                                  // Zone-relative name of this record (e.g., `www` for `www.<parent zone's domain name>`)
>                                  // Use `@` for records in zone apex (that is, records that have the same domain name as the zone itself)
>                                  // To see the resolved absolute domain name, see `Record.status.effective_fqdn`.
>     "ttl": int64,                // Record TTL. If absent or negative, will be assumed to be the default value (`600`).
>     "type": enum(                // [required] [immutable]
>                                  // Record type.
>       "RECORD_TYPE_UNSPECIFIED", // Record type is not specified.
>       "A",                       // `A` record: IPv4 address.
>       "AAAA",                    // `AAAA` record: IPv6 address.
>       "PTR",                     // `PTR` record: mapping from IP address to a domain name.
>       "CNAME",                   // `CNAME` record: an alias for a *canonical domain name*.
>       "MX",                      // `MX` record: mail server information (domain name, priority).
>       "TXT",                     // `TXT` record: text data, typically used to verify e-mail addresses, websites and TLS certificates.
>       "SRV",                     // `SRV` record: information about a network service (domain name, port, weight).
>       "NS",                      // `NS` record: domain name of an authoritative nameserver for this DNS zone, or one of its subzones.
>       "SOA",                     // `SOA` record: administrative information about this DNS zone.
>       "CAA",                     // `CAA` record: certificate issuance settings for this DNS zone and its subzones.
>       "SVCB",                    // `SVCB` record: service binding. See [RFC 9460, section 2.3](https://www.rfc-editor.org/rfc/rfc9460.html#section-2.3).
>       "HTTPS"                    // `HTTPS` record: service binding with HTTPS protocol configuration.
>                                  // See [RFC 9460, section 9.1](https://www.rfc-editor.org/rfc/rfc9460.html#section-9.1).
>     )
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius dns record create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {                                                                                                    
>     "data": "",                                                                                                
>     "deletion_protection": false,                                                                              
>     "relative_name": "",                                                                                       
>     "ttl": 0,                                                                                                  
>     "type": "record_type_unspecified"|"a"|"aaaa"|"ptr"|"cname"|"mx"|"txt"|"srv"|"ns"|"soa"|"caa"|"svcb"|"https"
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
