Thread: subdomains?

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    78
    Rep Power
    12

    subdomains?


    This is not the wisest question, but I need to ask it anyway.

    Normally, do we create a separate zone for a subdomain?

    So, if my domain name is www.mydomain.com, and I want to create a subdomain www.subdomain1.mydomain.com, do I create a new zone for it, or do I just add a CNAME record called "www.subdomain1" within the mydomain.com zone?

    Which is the more common practice?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,595
    Rep Power
    4207
    >> Normally, do we create a separate zone for a subdomain?
    No. You just add another record to the existing zone file.

    >> or do I just add a CNAME record called "www.subdomain1" within the mydomain.com zone
    Yes, but it's probably better to just add another A record instead of a CNAME record. Why -- because CNAME records have potential for misuse and may cause a caching nameserver to make another extra query to your nameserver. (The second section of http://cr.yp.to/djbdns/killa6.html has more, if you're interested in the technical details. Yes, I know this is a djbdns site, but the same principle is true whether you're using BIND, djbdns, Microsoft DNS or whatever)

    [edit] Another link http://www.rscott.org/dns/cname.html [/edit]
    Last edited by Scorpions4ever; July 29th, 2003 at 11:51 PM.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo