---
title: "Add a resource record"
sidebar_label: "Add a record"
description: "How to add a resource record"
sidebar_position: 1
toc_max_heading_level: 2
---

import Formbricks from '@theme/MDXComponents/Formbricks'

import {CustomTable} from '@selectel/docux/components'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import DnsLegacyAlert from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/dns-hosting/dns-legacy-alert.mdx'

# Add a resource record

<DnsLegacyAlert />

A resource record is a record that maps a domain to information about it in the Domain Name System (DNS).

In DNS hosting, you cannot manage reverse resource records (PTR records); for  this, use the [IP address management service](/ip-addresses/about-ip-addresses.mdx).

## Add a resource record \{#add-record}

In DNS hosting (actual), resource records are stored in groups—one group contains all domain resource records of the same type. For example, a group of NS records contains four records pointing to [Selectel NS servers](/dns-hosting/about-dns.mdx#selectel-ns-servers).

If you do not have a resource record group of the required type for the domain yet, [add a resource record group](#add-record-group) of this type. If you already have a resource record group of the required type, [add an additional value to it](#add-record-to-group).

### Add a resource record group \{#add-record-group}

1. In the [Control panel](https://my.selectel.ru/dns/default/hosting/), on the top menu, click **Products** and select **DNS Hosting**.

2. In the **Domain zones** section, open the zone page.

3. Click **Add**.

4. Enter the resource record group name—this is the domain for which the group will be created. You can create a resource record group:

   * for the main domain (zone name)—leave the field empty. For example, if you leave the field empty for the `example.com.` zone, a group named `example.com.` will be created.
   * for a subdomain—enter the first part of its name. For example, if you enter `first` for the `example.com.` zone, a group named `first.example.com.` will be created.

5. Select the [resource record type](#record-types) in the group — A, AAAA, TXT, CNAME, MX, NS, SRV, SSHFP, CAA, DNAME, HTTPS, SVCB.

6. Enter the TTL or leave the default value. TTL is the time in seconds that a resource record in the NS server cache is considered up to date and does not require re-caching. The group TTL applies to all resource records in the group.

7. Enter the resource record value. For example, for an A record, enter the IP address you want to bind to the domain name.

8. If you need to add another resource record to the group, click **Add value** and enter the record value.

9. Optional: enter a comment—any additional information about the group; it will only be displayed in DNS hosting.

10. Click **Add**.

11. Wait for the added resource record group to propagate to the DNS servers. Propagation can take up to 72 hours.

12. Optional: [check the resource records](/dns-hosting/records/check-records.mdx). If the resource records have not appeared on the DNS servers 72 hours after creation, [create a ticket](https://my.selectel.ru/tickets/create).

### Add a resource record to a group \{#add-record-to-group}

If you add a resource record to an existing group, it will have the name and TTL specified for that group.

1. In the [Control panel](https://my.selectel.ru/dns/default/hosting/), on the top menu, click **Products** and select **DNS Hosting**.

2. In the **Domain Zones** section, open the zone page.

3. In the  resource record group menu, select **Edit**.<MoreVerticalIcon />

4. Click **Add**.

5. Enter the value.

6. Click **Save**.

7. Wait for the resource record to propagate to the DNS servers. Propagation may take from the group TTL up to 72 hours. You can view the resource record group TTL in the [Control Panel](https://my.selectel.ru/dns/default/hosting): in the top menu, click **Products** → **DNS Hosting** → **Domain Zones** → zone page.

8. Optional: [check the resource record](/dns-hosting/records/check-records.mdx). If the resource record has not appeared on the DNS servers 72 hours after creation, [create a ticket](https://my.selectel.ru/tickets/create).

## Available resource record types \{#record-types}

Learn more about the purpose of various resource records, their logic, and limitations in the Selectel blog article [How to Understand DNS Hosting and Avoid Breaking Anything](https://selectel.ru/blog/dns-records-types/).

<CustomTable>
  <table>
    <tbody>
      <tr>
        <th>A</th><td>Maps a domain name to the server's IPv4 address. Until an A record is created for a domain, the website will not work</td>
      </tr>

      <tr>
        <th>AAAA</th><td>Maps a domain name to the server's IPv6 address. Until an AAAA record is created for a domain, the website will not work</td>
      </tr>

      <tr>
        <th>CAA</th><td>Points to the certificate authorities authorized to issue TLS(SSL) certificates for this domain name. If multiple authorities can issue certificates for the domain, a CAA record must be created for each authority</td>
      </tr>

      <tr>
        <th>CNAME</th><td>Maps an additional domain to the primary (canonical) domain so that both point to the IP address of the primary domain. A CNAME record cannot be added for a second-level domain. A domain with a CNAME record cannot have other resource records</td>
      </tr>

      <tr>
        <th>DNAME</th><td>Maps all subdomains to the primary (canonical) domain so that they point to the IP address of the primary domain.</td>
      </tr>

      <tr>
        <th>MX</th><td>Points to the server for receiving incoming mail for the domain. If a domain has multiple mail servers, an MX record must be created for each server with a priority specified for load balancing</td>
      </tr>

      <tr>
        <th>NS</th><td>Points to the DNS servers where the resource records for the domain name are stored. When you add a domain to DNS hosting (actual), NS records for the domain are created automatically; they cannot be edited or deleted. You can only create NS records for a subdomain</td>
      </tr>

      <tr>
        <th>SOA</th><td>Contains information about the domain zone and is created automatically when a zone is created in DNS hosting (actual). An SOA record cannot be edited or deleted</td>
      </tr>

      <tr>
        <th>SRV</th><td>Defines the location—the hostname and port number—of servers for specific services. For each SRV record, the server priority and record weight are also specified for load balancing between servers</td>
      </tr>

      <tr>
        <th>SSHFP</th><td>Contains the key fingerprint used by the server when connecting via the SSH protocol</td>
      </tr>

      <tr>
        <th>SVCB</th><td>Contains data for establishing a connection to a site: the preferred protocol and its version, IP addresses, and ports</td>
      </tr>

      <tr>
        <th>HTTPS</th><td>A specialized equivalent of an SVCB record for establishing a connection over HTTPS</td>
      </tr>

      <tr>
        <th>TXT</th><td>Contains any text information that needs to be added to the domain settings. For example, it can store a unique token to verify domain ownership or a DKIM key for outgoing email campaigns</td>
      </tr>
    </tbody>
  </table>
</CustomTable>

<Formbricks />
