dadih32
By:
dadih32

Google can´t find MX records for DNS

October 13, 2016 414 views
DigitalOcean DNS Networking Ubuntu 16.04

I'm trying to set up gmail for my domain.

I added the google settings to my MX Records as seen below

ASPMX.L.GOOGLE.COM.
ALT1.ASPMX.L.GOOGLE.COM.
ALT2.ASPMX.L.GOOGLE.COM.
ALT3.ASPMX.L.GOOGLE.COM.
ALT4.ASPMX.L.GOOGLE.COM.

but Google don´t seem to find the Records I have already waited 48hrs and the result was that I didn´t have any MX records. I have double checked the spelling and it all adds up.

The domain is from Godaddy but I've directed the name servers to Digital Ocean.

I really don´t know why this isn't working and I don´t want to be without my email for another 48hrs.

here is the Zonefile

$ORIGIN www.mydomain.com.
$TTL 1800
www.mydomain.com. IN SOA ns1.digitalocean.com. hostmaster.www.mydomain.com.
www.mydomain.com. 1800 IN NS ns1.digitalocean.com.
www.mydomain.com. 1800 IN NS ns2.digitalocean.com.
www.mydomain.com. 1800 IN NS ns3.digitalocean.com.
www.mydomain.com. 1800 IN A 138.68.150.155
www.www.mydomain.com. 1800 IN CNAME www.mydomain.com.
www.mydomain.com. 1800 IN MX 1 aspmx.l.google.com.
www.mydomain.com. 1800 IN MX 5 alt1.aspmx.l.google.com.
www.mydomain.com. 1800 IN MX 5 alt2.aspmx.l.google.com.
www.mydomain.com. 1800 IN MX 10 alt3.aspmx.l.google.com.
www.mydomain.com. 1800 IN MX 10 alt4.aspmx.l.google.com.

2 comments
2 Answers

Your mx records should be for mydomain.com not www.mydomain.com.

Have another answer? Share your knowledge.