Koozali.org: home of the SME Server

CNAME to a different IBAY?

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
CNAME to a different IBAY?
« on: May 29, 2013, 12:50:59 AM »
Can a CNAME point to a different iBay??

example

Domain mtrosemedia.tk points to Primary
CNAME cdn.mtrosemedia.tk need to point to CDN IBAY

Any way to do this? Will I have to resort to an additional domain name?

Reason for doing this is for faster load times on hosted websites through Wordpress MU. Browser can load 8 objects simultaneously per URL. Having an additional URL load content allows for 16 objects at once (Technically speaking).
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: CNAME to a different IBAY?
« Reply #1 on: May 29, 2013, 04:44:40 AM »
Can a CNAME point to a different iBay??

A CNAME can only point to a FQDN (in DNS).

Quote
Domain mtrosemedia.tk points to Primary
CNAME cdn.mtrosemedia.tk need to point to CDN IBAY

You can have an entry cdn.mtrosemedia.tk  in the domains db, via the domains server-manager panel, which maps to the CDN i-bay. You can then set up cdm.mtrosemedia.tk in DNS as either an A record or a CNAME record what maps back to the IP address of mtrosemedia.tk. But I'm not sure why you are asking me this, since you could have just tried it.


Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: CNAME to a different IBAY?
« Reply #2 on: May 29, 2013, 06:40:54 AM »
I asked because I'm stuck.
Currently:
A Record for cdn.mtrosemedia.tk
Domain set in Server-manager for cdn.mtrosemedia.tk

whenever I go to cdn.mtrosemedia.tk, it redirects to mtrosemedia.tk
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: CNAME to a different IBAY?
« Reply #3 on: May 29, 2013, 01:39:55 PM »
If cdn.mtrosemedia.tk is serving a copy of the wordpress site at mtrosemedia.tk, you may need to change the site location settings within Wordpress to prevent redirection.

On my SME 8, virtual domains serving ibay content look like this:
Code: [Select]
db domains show testsite.mydomain.com
testsite.mydomain.com=domain
    Content=testibay
    Description=testsite.mydomain.com
    Nameservers=localhost

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: CNAME to a different IBAY?
« Reply #4 on: May 30, 2013, 05:33:31 AM »
My settings are as such.
All other CNAMES or Domains work as advertised

Code: [Select]
mtrosemedia.tk=domain
    Content=mtrosemedia
    Description=Primary domain
    Nameservers=localhost
    Removable=no
    SystemPrimaryDomain=yes


cdn.mtrosemedia.tk=domain
    Content=cdn
    Description=Content Delivery Network System Site
    Nameservers=internet


mtrosecdn.tk=domain
    Content=cdn
    Description=mtrosemedia CDN Content
    Nameservers=localhost


hisproverbs1822.com=domain
    Content=mtrosemedia
    Description=Antoinette Burns Blog
    Nameservers=localhost

Everything works but cdn.mtrosemedia.tk
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: CNAME to a different IBAY?
« Reply #5 on: May 30, 2013, 12:14:47 PM »
do you have a cdn host in hostname and adresses panel?