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!

DNS settings: several redundant CNAME entries?

Discussion in 'Bind/DNS/Nameserver' started by kazimir82, Apr 27, 2011.

  1. kazimir82

    kazimir82 Member

    Joined:
    Apr 15, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    51
    In the DNS settings of a domain, I noticed by default these DNS records are being created:

    Code:
    example.com       A      1.2.3.4
    mail.example.com  CNAME  example.com
    www.example.com   CNAME  example.com
    ftp.example.com   CNAME  example.com
    *.example.com     A      1.2.3.4
    Just out of curiosity, is there any advantage to this, instead of just:
    Code:
    example.com    A      1.2.3.4
    *.example.com  CNAME  example.com
    I guess it doesn't matter, but I just want to make sure I understand 100% what's going on.

    It seems to me the first is more redundant (more work involved if your IP ever changes, for example) but they effectively work the same, is that correct?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    mail.example.com shouldn't actually use a CNAME according to the RFC, so I'd change that to an IP and keep it separate. You can read the following about how CNAME records should not be used for mail.example.com entries at Chapter 8 - CNAME Record location:

    I wouldn't personally want to wildcard all subdomains to a set entry, but you are correct that it should be possible to do it the way you are noting for the other subdomains.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kazimir82

    kazimir82 Member

    Joined:
    Apr 15, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    51
    Thanks a lot!
     
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