• What's new

Weekly Product Update: Validate DNS Records Using The Domains API

Mailgun Team
5 min read
featured

We recently told you about our two newest APIs both in private beta: Domains and Webhooks. We’ve seen a lot of interest so far and gotten some good feedback. Thanks! If you want to try them yourself, just send an email to beta@mailgun.net with your Github handle and we’ll add you. This week’s product update–DNS record validation– is an improvement to the Domains API which makes it a lot more useful if you are building an application that gives your end-users the ability to white-label their own emails. Here’s how:

Validate DNS records using the Domains API

When you set up a domain in Mailgun, you’re given some DNS records that allow Mailgun to send and receive email on your behalf, and track clicks and opens. These records are displayed in the Domain detail page of your control panel.

With the new Domains API, these values are also available programmatically so that you can display the appropriate records to your clients directly through your application.

But what if you want to know if your customer has properly set up the records you provided them? No problem. Using the Domains API you can determine whether or not SPF, DKIM, CNAME and MX records are properly configured. When you use the Domains API to get information about a particular domain, we’ll return all DNS records, along with a status of each: valid or unknown. Valid means just what it sounds like, the DNS record is properly configured. Unknown means that something isn’t right. Maybe they mistyped it, or maybe it just hasn’t propagated yet. As you troubleshoot with your customer, you can check it again to make sure the records are valid before proceeding.

That’s it for this week. To those of you in the USA, we hope you had a happy 4th of July. Till next week!

Happy sending,

The Mailgunners

DELIVERABILITY SERVICES

Learn about our Deliverability Services

Looking to send a high volume of emails? Our email experts can supercharge your email performance. See how we've helped companies like Lyft, Shopify, Github increase their email delivery rates to an average of 97%.

Learn More

Last updated on August 28, 2020

  • Related posts
  • Recent posts
  • Top posts
View all

Always be in the know and grab free email resources!

No spam, ever. Only musings and writings from the Mailgun team.

By sending this form, I agree that Mailgun may contact me and process my data in accordance with its Privacy Policy.

sign up
It's easy to get started. And it's free.
See what you can accomplish with the world's best email delivery platform.
Sign up for Free