DNS zones and records
In this article:
DNS zones and records#
Operations with DNS zones#
DNS zones in K2 Cloud are designed to serve second- and lower-level domains. Each zone is created for a specific domain, and its name must match the domain name.
Note
To use DNSaaS service, the Route53Administrators policy must be attached to the user.
Create a public DNS zone#
Go to the DNSaaS section DNS Zones and click Create.
In the window that opens, set the public zone parameters:
Domain name – The name of the domain is set as the zone name. The domain name must have at least two labels.
Description – An arbitrary description of the zone (optional).
Type – Leave the default type (Public) unchanged.
If you want to specify tags for the DNS zone, click Add tags to go to the next step and add the tags.
Click Create to complete the DNS zone creation.
Along with the public zone, two records are created: SOA and NS. The SOA record contains details of the created zone and cannot be changed. The NS record includes data about the authoritative name servers in use.
Create a private DNS zone#
Note
To ensure private DNS zone functioning, the VPC must have DNS support enabled (more about private DNS names). You can check this in the Information tab on the VPC page.
Go to the DNSaaS section DNS Zones and click Create.
In the window that opens, set the private zone parameters:
Domain name – It must have at least two labels.
Description – An arbitrary description of the zone (optional).
Type – Select Private.
VPC – From the drop-down list, select the VPC to be served by this DNS zone.
If you want to specify tags for the DNS zone, click Add tags to go to the next step and add the tags.
Click Create to complete the DNS zone creation.
Edit a zone description#
Go to the DNSaaS section DNS Zones.
In the resource list, find the DNS zone whose description you want to edit, and click its ID to go to the zone page.
In the Information tab, modify the Description field by clicking the edit icon .
Assign tags to a DNS zone#
Tags allow you to classify DNS zones by various attributes, such as purpose, owner, etc. Using them simplifies the management of many similar resources.
To add, modify or delete DNS zone tags:
Go to the DNSaaS section DNS Zones.
In the resource list, find the DNS zone for which you want to add a record, and click its ID to go to the zone page.
Open the Tags tab.
To add a tag, click Add tag and specify the Key and Value fields.
To modify a tag, edit the required fields (Value and/or Key) of the respective tag.
To delete a tag, click the icon next to the tag you no longer need.
Note
If no tags have been set earlier, you can add the Name tag by clicking Add Name tag.
Click Apply to save the changes.
Delete a DNS zone#
Go to the DNSaaS section DNS Zones.
In the resource list, select the zone to be deleted and click Delete.
In the dialog window, confirm the deletion.
Alternatively, you can delete a DNS zone on its page in the Information tab.
Operations with DNS records#
Create a record#
Go to the DNSaaS section DNS Zones.
In the resource list, find the DNS zone for which you want to add a record, and click its ID to go to the zone page.
Open the Records tab and click Create.
Set the required parameters:
Record name – Specify the subdomain for which the record is being created. The root domain of the DNS zone will be added to the record name automatically when it is created. If the record is being created for the root domain of the DNS zone, leave the field blank.
Record type – Select the record type from the drop-down list. Available options depend on the DNS zone type. For a public zone, you can create A, AAAA, CNAME, MX, TXT, PTR, NS or SRV records, and for a private zone, A, AAAA or PTR. Records must be unique: you can create only one record with a specific name and type.
TTL – Specify the “time-to-live” of the record in seconds. It sets the maximum permitted time the record can live in a cache.
Values – Enter one or more record values. Each value should be entered on a new line. The value format depends on the type of record selected.
After all parameters are set, click Add record.
If additional records are required, repeat the previous step. If a record was entered incorrectly, select it in the record table and click Delete.
Once you have added all the required records, click Create.
Modify a record#
Go to the DNSaaS section DNS Zones.
In the resource list, find the DNS zone for which you want to add a record, and click the zone ID to go to its page.
Open the Records tab and click Modify.
Modify the record parameters. You can modify the record time-to-live and/or values.
In the TTL field, set the new time-to-live in seconds.
In the Values field, add new values or delete no-longer-needed ones.
Once you have made all the required modifications to the record, click Modify.
Delete a record#
Go to the DNSaaS section DNS Zones.
In the resource list, find the DNS zone in which you want to delete a record, and click the zone ID to go to its page.
Open the Records tab and select the record to be deleted from the resource list. You can select more than one record at once.
Note
Neither SOA record nor NS record for the root domain can be deleted.
Click Delete and confirm deletion in the window that opens.