Google Cloud DNS

To add and verify a sending domain in Mailtrap, you need access to your domain's DNS records and your domain provider account.

Sending Domain Setup check it for more details on setting up your sending domain. Continue reading to learn how to add Mailtrap DNS records to Google Cloud DNS.

Note: This guide assumes that your domain is either registered and managed with Google Cloud DNS or registered elsewhere but points to Google Cloud DNS. It also assumes that you've already created and configured a managed zone for your domain.

1

Go to Google Cloud Console, type Cloud DNS in the search bar, and choose it from the results.

2

In the Cloud DNS Zones page, open the Zone details for the domain you've added to Mailtrap by clicking on the Zone name.

3

Click Add Standard.

4

On the Domain Verification page in Mailtrap, you'll see the DNS records you need to add to Google Cloud DNS. These are Domain Verification, DKIM, DMARC, and Domain Tracking. You'll need the values under Type, Name, and Value.

Make sure you check the type next to each record in Mailtrap and choose a relevant one in Google Cloud DNS. There are four CNAME type records (Domain Verification, DKIM (2), and Custom Tracking Domain) and one TXT type record (SPF and DMARC). Ignore Google's SPF type record; it's deprecated.

DNS record types and categories in Mailtrap

The SPF check for your mail is covered by the domain verification record. There is no need to add a separate SPF record on your sending domain.

5

Copy the Name and Value for each record one by one. You can do this by hovering and clicking each record.

6

And paste the values into Google Cloud DNS. Remember that Google Cloud DNS refers to the Name field as DNS Name and the Value field as either Canonical name (for CNAME-type records) or TXT data (for TXT-type records).

Google Cloud DNS CNAME record form with DNS Name and Canonical name fields
Google Cloud DNS TXT record form with DNS Name and TXT data fields

When adding TXT-type records, add double quotes in the beginning and the end of the record string in the TXT data field.

7

Use the default value for TTL.

Click Create after adding each record in Google Cloud DNS.

8

Repeat the process of copying and pasting for each record until you've added all the Mailtrap DNS records to Google Cloud DNS.

9

Some records may be verified immediately, while some may take more time. Mailtrap will check the DNS records automatically every hour, but you can force a check by clicking the Re-check DNS Records button.

10

If you add all the required DNS records correctly, the Status of DNS records will change from Missing to Verified, and the red dots will turn green.

If you have additional questions, consult the official Google Cloud DNS documentation or contact us at [email protected].

Last updated

Was this helpful?