Product

Weekly product update: Validate DNS records using the Domains API

A quick update detailing the DNS record validations going on in the Domains API in Beta. Read more –

PUBLISHED ON

PUBLISHED ON

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

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.

Related readings

Forrester TEI study reveals Sinch Mailgun ROI and outcomes

When an enterprise starts working with Sinch Mailgun, what’s the financial impact that choice has on the business? It’s a good question – but not exactly an easy one to answer...

Read more

Here’s how to track email opens in Gmail with email tracking

Sending email campaigns doesn’t have to feel like you’re throwing darts into a black hole. Email analytics are a great way to determine the health of your ecommerce campaign and...

Read more

Everything you need to know about sending email with APIs

Are you creating an e-commerce web page that needs to send transactional emails to customers? A developer building a web application that needs to send messages to email...

Read more

Popular posts

Email inbox.

Build Laravel 10 email authentication with Mailgun and Digital Ocean

When it was first released, Laravel version 5.7 added a new capability to verify user’s emails. If you’ve ever run php artisan make:auth within a Laravel app you’ll know the...

Read more

Mailgun statistics.

Sending email using the Mailgun PHP API

It’s been a while since the Mailgun PHP SDK came around, and we’ve seen lots of changes: new functionalities, new integrations built on top, new API endpoints…yet the core of PHP...

Read more

Statistics on deliverability.

Here’s everything you need to know about DNS blocklists

The word “blocklist” can almost seem like something out of a movie – a little dramatic, silly, and a little unreal. Unfortunately, in the real world, blocklists are definitely something you...

Read more

See what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon