---
title: "Quick start"
sidebar_label: "Quick start"
sidebar_position: 2
description: "How to configure DNS in a private cloud network: create a zone and records, connect a network to the zone, connect a network to the DNS resolver"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import { CustomTable } from '@selectel/docux/components';
import CopyIcon from '@selectel/docux/icons/copy'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'

import AddRecordWithZone from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/cloud-servers/private-dns/add-record-with-zone.mdx'

# Private DNS: Quick start

To configure DNS in a private network of the cloud platform, you create a private DNS zone with records. You can also:

* add a network to a private DNS zone — if a network is added to a DNS zone, adding or changing a port in this network automatically creates or updates an A or AAAA record for it. The fully qualified domain name (FQDN) of a port in a record is generated as `<server_hostname>.<zone_domain_name>.`, where `<server_hostname>` is the server hostname, `<zone_domain_name>` is the zone domain. You can [change the port domain name](/cloud-servers/private-dns/manage-records/change-port-domain-name.mdx) manually, and the record in the zone will be updated automatically;
* connect a network to a private DNS resolver — if a network is connected to a DNS resolver, servers in this network can resolve domain names of all private DNS zones within their [pool](/infrastructure/locations.mdx#pool) and [project](/access-control/projects/).

If you need to configure DNS in a private network of dedicated servers, the connection is made via a [global router](/global-router/), see the [Configure DNS in a private network of a dedicated server](/dedicated/networks/configure-private-dns.mdx) guide for details.

To configure private DNS in a cloud platform network:

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

2. Follow the **Private DNS** section.

3. On the **DNS zones** tab, click **Create DNS zone**.

4. Select the pool where the private network is located.

5. Enter the zone domain. The domain can contain numbers, Latin letters, and hyphens. The domain cannot be a top-level domain, for example `example`.

6. Optional: enter the TTL in seconds or leave the default value. TTL is the time during which resource records for a zone in the NS server cache are considered up to date and do not need to be re-cached. The zone TTL will apply to records for which no separate TTL is specified.

7. Optional: select the network you want to add to the zone. If you add a network to a zone, A or AAAA records will be automatically created and updated for ports in that network. You can [add a network to a zone](/cloud-servers/private-dns/manage-network-dns-setting.mdx#add-network-to-dns-zone) at any time.

8. Optional: if you selected a network to add to the zone in step 7, connect it to the DNS resolver by checking the network. You can [connect a network to a DNS resolver](/cloud-servers/private-dns/manage-network-dns-setting.mdx#connect-network-to-dns-resolver) at any time, even if the network is not added to the zone.

9. Optional: add records to the zone by clicking **Add record** and filling in the fields based on the required record type. You can [add](/cloud-servers/private-dns/manage-records/add-record.mdx), [edit](/cloud-servers/private-dns/manage-records/edit-record.mdx), and [delete records](/cloud-servers/private-dns/manage-records/delete-record.mdx) at any time after creating the zone.

   <AddRecordWithZone />

10. Click **Create DNS zone**.

11. If you connected a network in the zone to the DNS resolver in step 8, specify the resolver IP addresses in the subnet settings of that network. Use the [Change DNS servers on a private subnet](/cloud-servers/cloud-networks/private-networks-and-subnets.mdx#change-dns-servers-on-private-subnet) subsection of the [Private networks and subnets](/cloud-servers/cloud-networks/private-networks-and-subnets.mdx) guide.

    The DNS resolver IP addresses in a network can be viewed in the [Control panel](https://my.selectel.ru/vpc/default/private-dns/resolvers): from the top menu, click **Products** → **Cloud Servers** → **Private DNS** → **DNS resolvers** tab → network row → **DNS resolver** field.

12. Optional: if you connected a network in a zone to a DNS resolver at step 8, enable public domain resolving; to do this, [enable the recursor on the DNS resolver](/cloud-servers/private-dns/manage-network-dns-setting.mdx#enable-recursor-on-dns-resolver).

<Formbricks />
