Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Why are MX records defined as CNAME in zone templates?

Discussion in 'Bind/DNS/Nameserver' started by Harikalar Kutusu, Oct 9, 2016.

Tags:
  1. Harikalar Kutusu

    Joined:
    Jan 13, 2016
    Messages:
    23
    Likes Received:
    6
    Trophy Points:
    3
    Location:
    Istanbul, Turkey
    cPanel Access Level:
    Root Administrator
    While checking Email on my new server I realized that MX's are defined as CNAME.

    When checked with online DNS/EMail tools they do complain that it is not a valid definition according to RFxxxx...

    Is there any reason for this kind of definition in cPanel servers?

    Thank you...

    (there are a couple of other posts on this issue in these forums, but just for specific setups)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    cPanel uses the "MX" record type by default. EX:

    Code:
    cptest01.tld.    14400    IN    MX    0    cptest01.tld.
    A "CNAME" record type would look like this:

    Code:
    cptest01.tld.    14400    IN    CNAME    0    cptest01.tld.
    Could you verify if the hostname referenced in your MX record resolves to a valid IP address? What's the exact warning message you receive in your email checker utility?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Harikalar Kutusu

    Joined:
    Jan 13, 2016
    Messages:
    23
    Likes Received:
    6
    Trophy Points:
    3
    Location:
    Istanbul, Turkey
    cPanel Access Level:
    Root Administrator
    Sorry,

    I already modified the records yesterday and cannot get the exact warning. The old setting was like this:
    Code:
    mydomain.org.    14400    IN    MX    0    mydomain.org
    mail               14400   IN   CNAME   mydomain.org
    
    Now I changed them to this:
    Code:
    mydomain.org.    14400    IN    MX    0    mydomain.org
    mail               14400   IN   A  123.123.123.123
    
    The tools on the Internet do not complain anymore... Let me try to revert a spare domain...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The change you made is acceptable, however either entry will work. By leaving the "mail" entry as a CNAME for "mydomain.org", you ensure that subdomain always resolves to the same IP address as "mydomain.org". We document the DNS record types at:

    Advanced Zone Editor - Documentation - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Harikalar Kutusu

    Joined:
    Jan 13, 2016
    Messages:
    23
    Likes Received:
    6
    Trophy Points:
    3
    Location:
    Istanbul, Turkey
    cPanel Access Level:
    Root Administrator
    I tested with a spare domain but could not replicate the results. I think it was a general DNS issue with my new server.

    Case closed :)

    Thank you again...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice