Google Cloud DNS: Set up MX records

Before you begin

  • Verify that you own your domain.

    Or, you can verify now with an MX record. We’ll show you how while you're setting up the MX records.

  • Create user accounts in Google Workspace for your team.

    If your team members already use email with your domain (their email address ends with your domain), you have to create their user accounts in Google Workspace before you change any MX record settings. Otherwise, they won't be able to send or receive messages with their business address in Gmail.

Next you sign in to your domain host and direct the email for your domain to the Google servers. It’s like registering your new address with the post office when you move so that your mail gets delivered to the right place. 

Change your MX records

Step 1: Sign in to your domain host

  1. Sign in to your Google Cloud console.
  2. Click Menuand thenNetwork servicesand thenCloud DNS.

    Networking > Network services > Cloud DNS

Step 2: Go to your DNS records

  1. Either open an existing DNS zone or click Create zone to create a new one.
  2. Choose the option that matches your situation:

    The Record sets portion of the page is shown.

Step 3: Add the new MX records

To direct your email to your Google Workspace account, you have to add new MX records to your domain. These are the records that you need to add:
MX server address Priority
Important: Some registrars require you to add a period after the .COM in the MX server address.
To add new MX records from the Create record set page:
  1. In the DNS Name field, enter @ or leave the default entry.
  2. From the Resource Record Type list, select MX.

    MX is selected from the Resource Record Type drop-down list.

  3. In the TTL field, enter 3600.
  4. In the TTL Unit field, select seconds.
  5. In the Preference and mail server field, enter the first MX record shown in the table above. Enter the priority number first, then a space, then the MX server address. For example, for the first record, enter:
  6. Click Add item.

    The first MX record is added on the Create record set page.

  7. In the second Preference and mail server field, enter 5
  8. Click Add item.
  9. Repeat steps 7 and 8 until all of the priorities and MX records from the table above have been added.

    All 5 MX records are entered in the Create record set page.

  10. Click Create.

    Your new MX records are shown on the Zone details page.

To change existing MX records from the Edit record set page:
  1. In the TTL field, enter 3600.
  2. In the TTL Unit field, select seconds.
  3. In the first Preference and mail server field, replace the existing record with the priority and record value for the first MX record from the table above (1
  4. Continue replacing the existing records value with the priorities and MX records from the table above.

    If you need another record field, click Add item.

    If any old MX records are left after you’ve added all 5 Google MX records, hover the mouse over the old record and click Delete "".

  5. After all 5 Google MX records have been added, click Save to save the Google MX record set.

    All MX records have been edited in the Edit record set page.


The new records can take up to 72 hours to propagate across the internet, depending on your DNS hosting provider. It might be less than 72 hours, but during this time, mail sent to your email domain might bounce. Until then, you'll keep getting messages at your previous email service provider.

If you still need help configuring your MX records, contact Google Cloud support.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Clear search
Close search
Google apps
Main menu
Search Help Center