---
title: "Edit DNS record"
sidebar_label: "Edit DNS record"
sidebar_position: 3
description: "How to edit a DNS record"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Edit DNS record

If a network is connected to a DNS zone, A or AAAA port records in the network are updated automatically when an IP address or [port domain name](/cloud-servers/private-dns/manage-records/change-port-domain-name.mdx) changes. They can also be changed manually. CNAME, MX, and TXT record types can only be changed manually.

You can check if a network is connected to a zone in the [Control panel](https://my.selectel.ru/vpc/default/private-dns/): from the top menu, click **Products** → **Cloud Servers** → **Private DNS** → the **DNS resolvers** tab → in the network row, the **DNS zone** field.

<Tabs queryString="edit-record">
  <TabItem value="a" default>
    <TabItemLabel>
      A or AAAA
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/private-dns/), from the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Private DNS** section.

    3. Open the zone page.

    4. In the **Records** block, in the line of the required A or AAAA record, click <MoreVerticalIcon /> and select **Edit record**.

    5. Modify the required parameters. You can change:

       * record type;
       * domain name for which the record is valid;
       * list of IP addresses associated with the domain name;
       * Record TTL. TTL is the time during which a resource record in the NS server cache is considered up to date and does not require re-caching.

    6. If you changed the record type in step 5, enter the new value depending on the new type:

       * for CNAME — the target domain name to which the alias should translate. This can be any FQDN-formatted domain name with a trailing dot;
       * for MX — priority and mail server name separated by a space, for example `10 mail.example.com`. The lower the number, the higher the priority. The mail server name must be in the same zone as the record's domain name. To add another value, click **+** and enter the data for another mail server. You can add no more than 100 mail servers;
       * for TXT — any text up to 255 characters. To add another value, click **+** and enter the text. You can add no more than 100 values.

    7. Click **Save**.
  </TabItem>

  <TabItem value="cname">
    <TabItemLabel>
      CNAME
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Private DNS**.

    3. Open the zone page.

    4. In the **Records** block, in the line of the required CNAME record, click <MoreVerticalIcon /> and select **Edit record**.

    5. Modify the required parameters. You can change:

       * record type;
       * domain name for which the record is valid;
       * target domain name to which the alias should translate;
       * Record TTL. TTL is the time during which a resource record in the NS server cache is considered up to date and does not require re-caching.

    6. If you changed the record type in step 5, enter the new value depending on the new type:

       * for A or AAAA — enter the IP addresses to be associated with the domain name: IPv4 addresses for an A record, and IPv6 addresses for an AAAA record. You can specify no more than 100 IP addresses. Enter the addresses separated by a comma or space, or on a new line;
       * for MX — priority and mail server name separated by a space, for example `10 mail.example.com`. The lower the number, the higher the priority. The mail server name must be in the same zone as the record's domain name. To add another value, click **+** and enter the data for another mail server. You can add no more than 100 mail servers;
       * for TXT — any text up to 255 characters. To add another value, click **+** and enter the text. You can add no more than 100 values.

    7. Click **Save**.
  </TabItem>

  <TabItem value="mx">
    <TabItemLabel>
      MX
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Private DNS**.

    3. Open the zone page.

    4. In the **Records** block, in the line of the required MX record, click <MoreVerticalIcon /> and select **Edit record**.

    5. Modify the required parameters. You can change:

       * record type;
       * domain name for which the record is valid;
       * target domain name to which the alias should translate;
       * Record TTL. TTL is the time during which a resource record in the NS server cache is considered up to date and does not require re-caching.

    6. If you changed the record type in step 5, enter the new value depending on the new type:

       * for A or AAAA — enter the IP addresses to be associated with the domain name: IPv4 addresses for an A record, and IPv6 addresses for an AAAA record. You can specify no more than 100 IP addresses. Enter the addresses separated by a comma or space, or on a new line;
       * for CNAME — the target domain name to which the alias should translate. This can be any FQDN-formatted domain name with a trailing dot;
       * for TXT — any text up to 255 characters. To add another value, click **+** and enter the text. You can add no more than 100 values.

    7. Click **Save**.
  </TabItem>

  <TabItem value="txt">
    <TabItemLabel>
      TXT
    </TabItemLabel>

    1. In the [control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.

    2. Go to the **Private DNS**.

    3. Open the zone page.

    4. In the **Records** block, in the line of the required MX record, click <MoreVerticalIcon /> and select **Edit record**.

    5. Modify the required parameters. You can change:

       * record type;
       * domain name for which the record is valid;
       * target domain name to which the alias should translate;
       * Record TTL. TTL is the time during which a resource record in the NS server cache is considered up to date and does not require re-caching.

    6. If you changed the record type in step 5, enter the new value depending on the new type:

       * for A or AAAA — enter the IP addresses to be associated with the domain name: IPv4 addresses for an A record, and IPv6 addresses for an AAAA record. You can specify no more than 100 IP addresses. Enter the addresses separated by a comma or space, or on a new line;
       * for CNAME — the target domain name to which the alias should translate. This can be any FQDN-formatted domain name with a trailing dot;
       * for MX — priority and mail server name separated by a space, for example `10 mail.example.com`. The lower the number, the higher the priority. The mail server name must be in the same zone as the record's domain name. To add another value, click **+** and enter the data for another mail server. You can add no more than 100 mail servers.

    7. Click **Save**.
  </TabItem>
</Tabs>

<Formbricks />
