Add subdomain for statistics

Discussion in 'Suggestions and Feedback' started by jdcrutchley, May 20, 2008.

  1. Would it be possible to automatically redirect a subdomain for our sites to our chosen stats package similar to how webmail.domain.tld is redirected? For example, I could type stats.mydomain.com and it would go to the same server as ss01.discountasp.net. I tried adding theA record myself, but it didn't work. Maybe because it showed up under the * subdomain in the list? I'm not that familiar with how DNS assigns priority - if it's just first in the list then my A record would never be looked at since the * matches all subdomains. I didn't see a way to move it up on the list.

    Reason I ask about this is it would be nice to tell a client who's domain is "goober.com" to just go to "stats.goober.com" instead of "ss01.discountasp.net"...

    Thanks!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    You can do that with either an "A" or "CNAME" record. I recommend CName


    - Goto DNS manager in the control panel
    - Click Add CNAME record
    - In the domain field, put stats
    - InDestination field, put ss01.discountasp.net
    - Leave ttl at 3600


    Note that you will get a warning message if you try to access w/ HTTPS because the common name doesn't match.





    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Does this work even if the unlimited subdomain option is enabled? Thatseems to adda *.mydomain.com entry in the A records which seems to be taking precedence over anything I add.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    The wildcard record (*.) should have the lowest priority. ie. if there's a exact match, it should take precendence.






    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Ok, so I created the CNAME like you said, but it's just showing the main website. Do I need to wait for DNS propagation? I'd have thought CNAMEs weren't cached upstream and therefore changes are immediate. Could be wrong though. My DNS settings look like this (domain name changed to protect the innocent), do you see anything wrong?

    Domain: mydomain.com

    A Record Manager
    : [Help?]
    Address Record: Maps from an IP address to a domain name. Also referred to as a host or hostname.





    Domain Name
    IP Address
    TTL



    mydomain.com
    64.22.138.238
    3600
    edit


    www.mydomain.com
    64.22.138.238
    3600
    edit
    delete

    ftp.mydomain.com
    64.22.138.238
    3600
    edit
    delete

    webmail.mydomain.com
    64.79.170.132
    3600
    edit
    delete

    smtp.mydomain.com
    64.79.170.132
    3600
    edit
    delete

    pop3.mydomain.com
    64.79.170.132
    3600
    edit
    delete

    imap.mydomain.com
    64.79.170.132
    3600
    edit
    delete

    *.mydomain.com
    64.22.138.238
    3600
    edit
    delete

    * add new record *


    new


    CNAME Record Manager : [Help?]
    Canonical Name Record: Creates an alias from one hostname to another.
    Use of CNAME is generally not recommended.





    Domain Name
    Destination
    TTL



    stats.mydomain.com
    ss01.discountasp.net
    3600
    edit
    delete

    * add new record *


    new


    MX Record Manager : [Help?]
    Mail Exchanger Record: Identifies the email server that handles email for a domain.





    Domain Name
    Destination
    Distance
    TTL



    mydomain.com
    sm02.internetmailserver.net
    10
    3600
    edit
    delete

    * add new record *



    new


    TXT Record Manager : [Help?]
    NOTE: Text Record can contain SPF record.





    Domain Name
    TXT Data
    TTL


    * add new record *



    new
    Destination:: Enter DNS name
    Distance:: Priorty for email delivery. Enter a value from 10 (high priority) - 99 (low priority)
    IP Address (Internet Protocol Address): Enter IP Address
    TTL (Time To Live): Recommended to set at 3600 (1 hour). Value between: 3600-259200
    TXT Data:: Enter TXT data. Limited to ASCII characters without quotes.
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    what is your domain name? I can check it to make sure it works ok.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. It's working now. There must be some kind of delay in the DNS system. I know there's a caching delay for domains, but I didn't realize subdomains got cached along the way.
     
  8. Bruce

    Bruce DiscountASP.NET Staff

Share This Page