A record
If you want your domain address to redirect users to your website, you need to set up an A and (or) AAAA record for your domain.
A records point to the IP address of the server that your site is located on in IPv4 format. AAAA records serve the same purpose, but contain the server address in IPv6 format.
If you delegated your domain to Yandex servers, you must configure an A record and AAAA record in Yandex.Connect. When a domain is linked to a company, existing DNS records are automatically copied to the domain page in Yandex.Connect. If this doesn't happen or you want to add a new site, create an A and AAAA record in the DNS editor in Yandex.Connect.
Configuring A and AAAA records
Log in to the domain (DNS zone) control panel on the website of your DNS hosting company.
If you delegated your domain to Yandex servers, go to the DNS editor in Yandex.Connect.
Create an A record and assign the following values (the field names may be different depending on the control panel):
- In the Subdomain name (or Host) field:
- To specify the site IP address for the primary domain (for example,
yourdomain.tld
), enter the@
symbol. - To provide the website IP address for a subdomain, enter the part of the subdomain name that is separated from the main domain name by a dot. For example: for the
sub.yourdomain.tld
subdomain, entersub
.
- In the Value field, enter the IP address of the server that hosts your website For example:
203.0.113.45
. - If the TTL field is required, enter
21600
.
- Create a second A record with the same IP address for the
www
subdomain. For example: in the Host field for the main domainyourdomain.tld
, enterwww
. For the subdomainsub.yourdomain.tld
, enterwww.sub
. - If the site has multiple IP addresses, create the same A records for each IP address.
- To create an AAAA record, follow the same steps for creating an A record. Enter the server IP address in IPv6 format as the value of the AAAA record, for example
2a02:4b7:b070:7310::1:8
. Wait for the changes to take effect. It may take up to 72 hours for DNS servers to exchange updated data about DNS records.