By TheMadHatter
Hi all,
I’m setting up a mail server on an Ubuntu droplet. I had to change the droplet name to the fqdn per some other threads on this forum.
droplet name: mail.mydomain.com
dig MX mydomain.com returns the mx:
dig MX mydomain.com +short @ ns1.digitalocean.com
0 mail.mydomain.com.
dig MX mail.mydomain.com +short @ ns1.digitalocean.com
Does not return anything.
In Ubuntu,
hostname returns mail hostname -d returns mydomain.com hostname --fqdn returns mail.mydomain.com
In the DigitalOcean web gui, under mydomain.com I can see the records.
MX 0 mail.mydomain.com.
When I use mxtoolbox.com on mx mail.mydomain.com, I get back “No mx Records exist” If I query mx mydomain.com I get back: Pref Hostname IP Address TTL 0 mail.mydomain.com {No A Record} 30 min
So it’s like the mx record doesn’t work with the fqdn, but only the domain.tld
Any ideas on how to fix?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I added the A record and mxtools completes the lookup for the domain.tld
Thank you for the follow ups!
Overall, it was my error on thinking the mx lookup should also work against the fqdn. Thanks again!
There’s nothing to fix. That query shouldn’t return anything.
EDIT: There’s a message which seems to indicate you may be missing a record, but since you censored your domain name there’s nothing we can do to verify if that’s true or not.
256K
Thanks for the reply back too. It just seemed like I should get a record back when asking for the mx for the fqdn.
edit 2: My zone file (visible in the DO gui) lists an A record in it: 256k.com. 1800 IN A 107.170.38.67
So not sure why mxtoolbox says there is no A record.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.