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!

Cookieless Domain Configuration

Discussion in 'Database Discussion' started by deefour, Jun 24, 2009.

  1. deefour

    deefour Registered

    Apr 21, 2008
    Likes Received:
    Trophy Points:

    I am in the process of going through Google Page Speed's documentation, and have come to

    Minimize request size

    The part I'm having trouble understanding is

    "...configure your DNS database with a CNAME record that points the new domain to your existing domain A record..."

    I am a bit confused about how to configure this, and am looking for any advice you guys can offer.

    Say I have and is my site's domain, and I am looking to server's static content from (the cookieless domain). This would mean I am trying to

    "...configure my DNS database with a CNAME record that points to's existing A record..."

    Can someone explain what, if anything must be done in WHM, and also exactly what type of DNS records I should be setting up for

    Thank you in advance.
  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    I personally would avoid using "CNAME" records for a lot of reasons and
    instead use "A" records for both domains (you can setup your zonetemplates
    to do this by default in WHM) and set the second domain as a domain alias
    (Add On Domain) to the primary domain account.

    If you want to do it the way you described though, you would need
    to login to your shell and edit the zone file in /var/named for your
    new domain (yourdomainname.db) and add the CNAME entry for
    the new secondary domain to point the primary domain and don't
    forget to increment the serial number for the zone.

    Afterwards remember to restart your DNS server:
    # service named restart
  3. hasen

    hasen Registered

    Oct 20, 2007
    Likes Received:
    Trophy Points:

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