# record-sync

The dns record-sync command synchronizes DNS records for a specific DNS zone. This command ensures that the DNS records stored in the system are consistent with the actual records configured for that zone.

## Usage

```
cldkctl dns record-sync [id] [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl dns record-sync [dns-zone-id]
```

2. Replace \[dns-zone-id] with the ID of the DNS zone. Refer to dns list section to obtain the DNS zone ID.
3. Once completed successfully, a message “✓ DNS records synchronized successfully!” will appear in the terminal.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FgBVY00iuhgqYh6pnBFh2%2Funknown.png?alt=media&#x26;token=82f2cdcf-bcae-45eb-b7c4-68fa4857bb83" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description                       |
| ---------- | --------------------------------- |
| -h, --help | Help for dns record sync command. |
