All articles
    Deliverability

    How to Set Up a PTR Record (Reverse DNS) for Mailgun

    To get a custom PTR (reverse DNS) record for Mailgun, you need a dedicated IP. Mailgun's reverse DNS article says custom rDNS cannot be set on shared…

    VeriMailX Team November 23, 2026 3 min read

    Key takeaways

    • Confirm that your sending IP is dedicated, not shared.
    • Choose a hostname on your domain, such as mail.example.com.
    • Ask Mailgun support for the A record to publish for that hostname.

    To get a custom PTR (reverse DNS) record for Mailgun, you need a dedicated IP. Mailgun's reverse DNS article says custom rDNS cannot be set on shared IPs, because a shared IP can resolve to only one hostname. For a dedicated IP, you create an A record for a hostname you control, then ask Mailgun support to point the PTR at that hostname. The PTR itself is set by Mailgun, not by you.

    Research checked: 12 November 2026

    This guide covers the setup steps only. The cold-sending decisions and the troubleshooting table are in separate guides.

    The short answer

    1. Confirm that your sending IP is dedicated, not shared.
    2. Choose a hostname on your domain, such as `mail.example.com`.
    3. Ask Mailgun support for the A record to publish for that hostname.
    4. Add the A record in your DNS zone at your hosting provider.
    5. Open a Mailgun support ticket asking for the PTR to match that hostname.
    6. Check the result with `dig -x` and a forward lookup.

    Setup steps

    Step 1: Confirm the IP type

    Open your Mailgun account and check which IP your sending uses. Mailgun's article says rDNS can be customised only on dedicated IPs. If you send on shared IPs, you cannot choose the PTR hostname, and this process will not apply. Ask Mailgun which option fits your account before you change DNS. Note that the Mailgun article describing this process is dated 29 August 2022, so confirm the current steps with support before you start.

    Step 2: Choose the hostname

    Pick a hostname on the domain you send from, for example `mail.example.com`. The PTR must point to a hostname that resolves back to the same IP. Use one hostname per dedicated IP. Do not reuse a hostname that another service already uses.

    Step 3: Get the A record and publish it

    Mailgun's article describes the process as: request the A record from Mailgun, add it to the zone file at your hosting provider, then submit a support ticket. The A record looks like this, with the IP replaced by yours:

    ``` mail.example.com. IN A 203.0.113.10 ```

    `203.0.113.10` is a documentation address used as a placeholder. Use the IP Mailgun gives you. Add the record in the DNS zone for `example.com`.

    Step 4: Ask Mailgun to update the PTR

    Open a support ticket with the IP and the hostname. Mailgun's article says it will update the PTR on its side to match the hostname you are using, and it can create custom PTR records for you. Do not change the PTR yourself, because you do not control the reverse zone for a Mailgun IP.

    Verify it worked

    Check the reverse lookup:

    ``` dig -x 203.0.113.10 +short ```

    Expected output is the hostname you asked for, with a trailing dot:

    ``` mail.example.com. ```

    Then check the forward record, which must return the same IP:

    ``` dig +short A mail.example.com ```

    Expected output is `203.0.113.10`. Google's sender requirements say the sending IP must match the IP of the hostname in the PTR record, so both checks matter. If the reverse lookup is correct and the forward lookup is not, mail can still fail that check.

    Step 5: Repeat for each dedicated IP

    If your account has more than one dedicated IP, run the process for each one, with its own hostname and its own ticket. Keep a short table in your notes that lists each IP, its hostname and the date you requested the change. When a reverse lookup later returns an unexpected name, that table tells you which request to check first.

    Frequently asked questions

    Keep reading

    Comparisons

    Instantly vs Smartlead: How to Choose a Cold Email Platform

    Instantly and Smartlead both support cold email campaigns across multiple sending accounts. The better choice depends on your contact limits, sending volume, reply workflow, and the cost of the features you actually need. Start

    Read
    Comparisons

    Instantly vs Smartlead Deliverability: How to Compare Inbox Placement

    Neither Instantly nor Smartlead can guarantee that a cold email reaches the inbox. Both provide tools for managing outreach, but inbox placement also depends on your sending domain, authentication, recipient list, message and the

    Read
    Comparisons

    Instantly vs Smartlead Pricing: Compare the Real Cost of Outreach

    The headline subscription is only one part of a cold email budget. The right comparison includes sending limits, contact storage, mailboxes, lead data, verification and any tools needed for your team. A cheaper entry plan can

    Read