How to connect a domain to Google and Yandex mail services
If you want to use email on your domain (for example, info@yourdomain.kz) via Gmail or Yandex, you need to verify the domain and add special DNS records. This guide describes how to do this using the ISPmanager control panel or free DNS hosting from Unihost.kz.
Step 1. Register with the email service
Google Workspace: https://workspace.google.com/ — start registration and add your domain.
Yandex 360: https://connect.yandex.ru/ — select "Mail for domain" and follow the instructions.
Step 2: Domain Verification
After registration, the service will issue a TXT record that must be added to the domain's DNS zone.
Example entry:
| Name | TTL | Type | Meaning |
|---|---|---|---|
| @ | 3600 | TXT | google-site-verification=abc123… |
Where to add a TXT record
Option 1. You have "Website Hosting" from Unihost.kz
- Log in to your ISPmanager control panel (via your Unihost.kz account → Products/Services → Website Hosting → click on the active service → Go)
- Go to the DNS Management
- Select the desired domain and click DNS records
- Click Create , select
the TXT, fill in the fields and click OK
Option 2. You use "Free DNS Hosting"
- Log in to your DNS hosting control panel (via your Unihost.kz account → Products/Services → DNS hosting → click on the active service → Go)
- In the left menu, select Domain Names
- Select the desired domain and click Records
- Click Create , select
the TXT, fill in the fields and click OK
Step 3: Adding MX records
MX (Mail Exchange) records specify which server to deliver incoming emails to. Each record has a Priority : the lower the value, the higher the priority. Mail will be sent first to the record with the lowest number.
Example of filling in fields:
| Name | TTL | Type | Domain | Priority |
|---|---|---|---|---|
| @ | 3600 | MX | ASPMX.L.GOOGLE.COM. | 10 |
| @ | 3600 | MX | ALT1.ASPMX.L.GOOGLE.COM. | 20 |
| @ | 3600 | MX | ALT2.ASPMX.L.GOOGLE.COM. | 20 |
| @ | 3600 | MX | ALT3.ASPMX.L.GOOGLE.COM. | 30 |
| @ | 3600 | MX | ALT4.ASPMX.L.GOOGLE.COM. | 30 |
For Yandex:
| Name | TTL | Type | Domain | Priority |
|---|---|---|---|---|
| @ | 3600 | MX | mx.yandex.net. | 10 |
Step 4. SPF, DKIM, and DMARC
SPF records allow you to specify which servers can send mail on behalf of a domain. They are added as TXT records.
Google Workspace:
| Name | TTL | Type | Meaning |
|---|---|---|---|
| @ | 3600 | TXT | v=spf1 include:_spf.google.com ~all |
Yandex 360:
| Name | TTL | Type | Meaning |
|---|---|---|---|
| @ | 3600 | TXT | v=spf1 include:_spf.yandex.net ~all |
DKIM records are generated automatically in the email service interface. The record name and value will also be displayed there. Example:
| Name | TTL | Type | Meaning |
|---|---|---|---|
| google._domainkey | 3600 | TXT | v=DKIM1; k=rsa; p=MIGf… (abbreviated) |
DMARC records are added manually as TXT records. Example:
| Name | TTL | Type | Meaning |
|---|---|---|---|
| _dmarc | 3600 | TXT | v=DMARC1; p=none; rua=mailto:you@domain.kz |
Conclusion
After adding all the records, wait 1 to 2 hours for the DNS to update. You'll then be able to use Google or Yandex mail with your Unihost.kz domain.