

<a id="confluent-network-dns-record-update"></a>

# confluent network dns record update

## Description

Update an existing DNS record.

```none
confluent network dns record update <id> [flags]
```

## Flags

```none
    --name string                        Name of the DNS record.
    --private-link-access-point string   ID of associated PrivateLink Access Point.
    --context string                     CLI context name.
    --environment string                 Environment ID.
-o, --output string                      Specify the output format as "human", "json", or "yaml". (default "human")
```

## Global Flags

```none
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, and -vvvv for trace).
```

## Examples

Update the name of DNS record “dnsrec-123456”.

```none
confluent network dns record update dnsrec-123456 --name my-new-dns-record
```

Update the Privatelink access point of DNS record “dnsrec-123456”.

```none
confluent network dns record update dnsrec-123456 --private-link-access-point ap-123456
```

## See Also

* [confluent network dns record](index.md#confluent-network-dns-record) - Manage DNS records.
