Skip to main content

Add DNS record

If a network is attached to the zone, A or AAAA records in the zone are added automatically when a port is created in the network. Such records are labeled with the Auto tag. A or AAAA records can also be added manually. CNAME, MX, and TXT records can only be added manually.

Only one record of each type can exist for a domain name. If you do not yet have a resource record of the required type for the domain name, add a record. If you already have a record of the required type for the domain name, add a value to it.

If a network is attached to the zone and you manually added an A or AAAA record for the domain name, and then created a port with that domain name, the port's IP address will be automatically added to this record as an additional value. The Auto tag will be added to the record, and it will start updating automatically when the port data changes.

You can check if a network is attached to the zone in the Control panel: in the top menu, click Products → Cloud Servers → Private DNS → the DNS resolvers tab → the network row → the DNS zone field.

Add record

  1. In the Control panel, in 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, click Add record.
  5. Select the record type: A or AAAA.
  6. Enter the domain name for which the record will be created. The domain of the zone where you are creating the record will be automatically appended to it.
  7. Enter the IP addresses to be associated with the domain name: IPv4 addresses for an A record, IPv6 addresses for an AAAA record. You can specify up to 100 IP addresses. Enter addresses separated by a comma or space, or each on a new line.
  8. Enter the record TTL in seconds. To apply the zone TTL, enter -1 or click Use zone TTL. TTL is the time during which a resource record in the NS server cache is considered valid and does not require re-caching.
  9. Click Add.

Add a value to the record

You can add a value to A, AAAA, MX, and TXT records. A CNAME record can only contain one value.

  1. In the Control panel, in 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 with the required A or AAAA record, click and select Edit record.
  5. In the IPv4 address or IPv6 address field, enter an additional IP address to be associated with the domain name. You can specify up to 100 IP addresses. Enter addresses separated by a comma or space, or each on a new line.
  6. Click Save.