The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS settings: several redundant CNAME entries?

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

  1. kazimir82

    kazimir82 Member

    Joined:
    Apr 15, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  3. kazimir82

    kazimir82 Member

    Joined:
    Apr 15, 2011
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Thanks a lot!
     
Loading...

Share This Page