Home / Knowledge Base / Mail / How to connect a domain to Google and Yandex mail services

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:

NameTTLTypeMeaning
@3600TXTgoogle-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:

NameTTLTypeDomainPriority
@3600MXASPMX.L.GOOGLE.COM.10
@3600MXALT1.ASPMX.L.GOOGLE.COM.20
@3600MXALT2.ASPMX.L.GOOGLE.COM.20
@3600MXALT3.ASPMX.L.GOOGLE.COM.30
@3600MXALT4.ASPMX.L.GOOGLE.COM.30

For Yandex:

NameTTLTypeDomainPriority
@3600MXmx.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:

NameTTLTypeMeaning
@3600TXTv=spf1 include:_spf.google.com ~all

Yandex 360:

NameTTLTypeMeaning
@3600TXTv=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:

NameTTLTypeMeaning
google._domainkey3600TXTv=DKIM1; k=rsa; p=MIGf… (abbreviated)

DMARC records are added manually as TXT records. Example:

NameTTLTypeMeaning
_dmarc3600TXTv=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.