Create a DNS zone
-
In the Control panel, in the top menu, click Products and select Cloud Servers.
-
Перейдите in раздел Приватный DNS.
-
On the DNS zones tab, click Create DNS zone.
-
Select a pool.
-
Enter the zone domain. The domain can contain numbers, Latin letters, and hyphens. A domain cannot be a top-level domain, for example
example. -
Optional: change the TTL—enter a value in seconds. TTL is the time during which zone resource records in the NS server cache are considered current and do not require re-caching. The zone TTL will be applied to records for which their own TTL is not specified.
-
Optional: select the networks you want to add to the zone. If you add a network to a zone, A or AAAA records for the ports in that network will be created and updated automatically.
-
Optional: if you selected networks to add to the zone in step 7, connect them to the DNS resolver by selecting the required networks. If a network is connected to a DNS resolver, servers in this network can resolve domain names of all DNS zones within their pool and project.
-
Optional: add records to the zone by clicking Add record and filling in the fields according to the required record type. You can add, edit, and delete records at any time after creating the zone.
A or AAAA
CNAME
MX
TXT
If a network is added to a zone, A and AAAA records are created and added automatically; you do not need to create or update them manually. To add a record manually:
9.1.Select the record type — A or AAAA.
9.2.Enter the domain name for which the record will be created. The domain of the zone in which you are creating the record will be added to it automatically.
9.3.Enter the IP addresses to be associated with the domain name: for an A record, IPv4 addresses; for an AAAA record, IPv6 addresses. You can specify a maximum of 100 IP addresses. Separate addresses with a comma or space, or place each address on a new line.
9.4.Enter the record TTL in seconds. To use the zone TTL, enter
-1or click Use zone TTL.9.5.Click Add.
9.6.To add another record, click Add record and repeat steps 9.1–9.5.
-
Click Create DNS zone.
-
Если on шаге 8 вы подключили сети in зоне к DNS-резолверу, укажите IP-адреса резолвера in настройках подсетей этой сети. Используйте подраздел Изменить DNS-серверы in приватной подсети инструкции Приватные сети and подсети
IP-адреса DNS-резолвера in сети можно посмотреть in панели управления: in верхнем меню нажмите Продукты → Облачные серверы → Приватный DNS → вкладка DNS-резолверы → строка сети → поле DNS-резолвер.