Instructions for creating DNS records.
1. Go to records settings
Open the “All zones” tab and select the domain zone you want to add records for. Click it or the "Go to records" button next to it.
2. Select record type
In the “Type” field, select the type of DNS record.
- А — defines the IP address the domain corresponds to. A record is for IPv4 addresses of the form 184.108.40.206.
- AAAA — defines the IP address the domain corresponds to. AAAA record is for IPv6 addresses of the form 7625: 0d18: 1fa3: 07d7: 1f44: 8a2e: 07a0: 678h.
- NS — defines addresses of DNS servers serving the domain.
- CNAME — maps resource records of one domain to resource records of another. If you specify a CNAME record for site.com with the value “anothersite.com”, then when you open site.com it will have the same DNS records as anothersite.com has (for example, it will requests the same IP if A/AAAA records for anothersite.com exists).
- MX — defines the server that receives mail for the domain.
- SRV — defines the server that operates certain services for the domain.
- TXT — defines auxiliary information about the domain. For example, you can specify Sender Policy Framework (SPF) rules that determine mail servers allowed to receive mail.
3. Specify which subdomain (or main domain) the record belongs to
In the “Name” field, specify which domain or which subdomain the record belongs to.
To add a record for:
- Main domain (apex/naked domain; in the picture above it is example-kb.com) - leave the field blank
- Specific subdomain — enter the name of this subdomain (for example, if you enter "one" in the picture above, the record will be created for one.example-kb.com)
- All subdomains at once (wildcard record) — enter an asterisk (*)
4. Specify the content of the record
Fill in the "Content" field.
Enter a value appropriate for your record type.
The IP address (IPv4) of the server of the web page that will open by your domain name.
The IP address (IPv6) of the server of the web page that will open by your domain name.
The name of the zone you want to delegate your domain to. At the end of the name type a dot like here: “[name of the zone].".
The domain or domain zone name that your domain should refer to. At the end of the name type a dot like here: “[the domain].".
The name of the mail server that receives mail for your domain. At the end of the name type a dot like here: “[name of the mail server].".
The canonical name of the machine providing the service. At the end of the name type a dot like here: “[name of the machine].".
Text information the record should contain.
5. Specify TTL
Example: A-record has a TTL of 300. You have changed the value of this record from “220.127.116.11” to “127.127.127.127”. Within 5 minutes, when requesting your domain, users will be sent to a server with IP 18.104.22.168 (this value will be stored in the cache of recursive DNS servers). But after 5 minutes, the DNS server will check the settings and see the new value of the A-record. Now, when your domain is requested, the DNS server will send users to the server with IP 127.127.127.127.
6. Add additional records of the selected type (optional)
You can add multiple records of the same type to your domain at once. Click "Add record” to add another record.
A new line will appear, there you can enter the content of the second record and the associated metadata (read about metadata in step №7). Any record can be deleted by clicking the "—" button next to it.
7. Configure balancing (optional)
Our DNS server can give different DNS records to different users — for example, send users from Asia to an Asian server, and European users to a European one. This is called balancing. To enable balancing, move the slider in the "Records selection using metadata" section. If balancing is not needed, leave the slider disabled and go to step №8.
Balancing is based on the metadata you add to each record. You can add seven types of data: coordinates, ASN, continent, country, IP, fallback, or notes. The system will check if a user corresponds to the specified parameters: if he or she does the system will give the record, if not it will not give. For example, you can add metadata of the "continent" type with the value "Africa" to a record, and it will only be given to users from Africa.
Balancing by coordinates (Geo Proximity)
For this type of balancing, you must add coordinates for at least one record. When requesting your domain, the user will receive the record with the nearest coordinates.
To use balancing by coordinates select "by latlong metadata (geo coordinates)".
An example. Below you can see the parameters with which the user will receive an A-record with the value "22.214.171.124" if he or she is nearer to the coordinate 51.52318152049715/-0.13458412218999416 (the center of London) and an A-record with the value "126.96.36.199" if he or she is nearer to 48.859741241898114/2.3415648470109653 (the center of Paris).
Configure balancing by IP, ASN, country or continent (Geo DNS)
For this type of balancing, you add different types of metadata to each record (you can add as many parameters as you need):
- asn — autonomous system number
- continents — continent
- countries — country
- ip — subnet or specific IP
- fallback — add fallback metadata to the records, that should be sent if the user does not correspond to other metadata
- notes — any comments, this metadata type can be used as a field for notes; for example, you can specify a city, data center name, or a cluster name.
When a user requests the domain, the system will check if he or she corresponds to criteria from the metadata in the order: IP, ANS, country, continent. The choice of the answer is as follows:
- Our DNS server receives a request to the domain.
- The server compares the user's IP with the IPs specified in the metadata. If they match, the server sends the record for which the user's IP matches.
- If IPs don’t match or it is not specified in the metadata, the DNS server compares the user's ASN with the ASNs from the metadata. If they match, the server sends the record for which the user's ASN matches.
- If IP and ASN don’t match or are not specified in the metadata, the server compares the user's country with the countries from the metadata. If they match, the server sends the record for which the user's country matches.
- If the IP, ASN, and country do not match or are not specified in the metadata, the server compares the user's continent with the continents from the metadata. If they match, the server sends the record for which the user's continent matches.
- If the user does not match all the criteria above, then the server sends a record with fallback type metadata.
To start balancing by IP, ASN, country, or continent, select "by non-coordinates meta".
An example. Balancing is configured as follows:
- Compare the user's IP with the IP from the metadata. The user's IP (188.8.131.52) does not correspond to the specified subnets (127.127.127.127.0 / 8 and 184.108.40.206/8), none of the records are sent.
- Compare the ASN of the user with the ASN from the metadata. The number is specified only for the upper record (199102), it does not match the user’s number (199524), the upper record is not sent.
- Compare the user's country with the countries specified in the metadata. The country is specified only for the upper record (Georgia), it does not match the user's country (Denmark), the upper record is not sent.
- Compare the user's continent to continents specified in the metadata. The continent is specified only for the lower record (Europe), it matches the user's continent (Europe). The lower record is sent, the user goes to the server with IP 220.127.116.11.
8. Specify the maximum number of responses (optional)
If you are using balancing, fill in the "Max records per response" field. Here you specify how many records of the same type can be sent to the user.
An example, balancing by IP/ASN/country/continent. As a result of balancing, it turned out that four A-records are suitable for the user at once. If you entered the number "2" in the "Max records per response", our DNS server will send only two A-records. These records will be randomly selected from the four ones that match.
An example, balancing by coordinates. Four A-records with different coordinates are available, and the number "2" is specified in the "Max records per response". Our DNS server will send the user two records with the nearest coordinates.
9. Complete the configuration and create resource records
After completing the configuration, click the "Create" button.