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.

Cookieless Domain Configuration

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

  1. deefour

    deefour Registered

    Joined:
    Apr 21, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello-

    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 domainA.com and domainB.com. DomainA.com is my site's domain, and I am looking to server domainA.com's static content from domainB.com (the cookieless domain). This would mean I am trying to

    "...configure my DNS database with a CNAME record that points domainB.com to domainA.com'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 domainB.com?

    Thank you in advance.
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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:
    Code:
    # service named restart
     
  3. hasen

    hasen Registered

    Joined:
    Oct 20, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
Loading...
Similar Threads - Cookieless Domain Configuration
  1. ocraft
    Replies:
    1
    Views:
    179

Share This Page