View Full Version : Add subdomain for statistics
jdcrutchley
05-20-2008, 07:47 AM
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!
bruce
05-20-2008, 11:37 AM
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 (http://www.DiscountASP.NET)
jdcrutchley
05-21-2008, 02:54 AM
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.
bruce
05-21-2008, 06:34 AM
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 (http://www.DiscountASP.NET)
jdcrutchley
05-21-2008, 07:21 AM
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? (http://kb.discountasp.net/article.aspx?id=10301)]
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 (:__doPostBack('ctl00$cMain$dbRecordsA$ctl02$ctl00 ',''))
www.mydomain.com
64.22.138.238
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl03$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl03$ctl01 ',''))
ftp.mydomain.com
64.22.138.238
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl04$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl04$ctl01 ',''))
webmail.mydomain.com
64.79.170.132
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl05$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl05$ctl01 ',''))
smtp.mydomain.com
64.79.170.132
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl06$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl06$ctl01 ',''))
pop3.mydomain.com
64.79.170.132
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl07$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl07$ctl01 ',''))
imap.mydomain.com
64.79.170.132
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl08$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl08$ctl01 ',''))
*.mydomain.com
64.22.138.238
3600
edit (:__doPostBack('ctl00$cMain$dbRecordsA$ctl09$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsA$ctl09$ctl01 ',''))
* add new record *
new (:__doPostBack('ctl00$cMain$dbRecordsA$ctl10$ctl00 ',''))
CNAME Record Manager : [Help? (http://kb.discountasp.net/article.aspx?id=10301)]
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 (:__doPostBack('ctl00$cMain$dbRecordsC$ctl02$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsC$ctl02$ctl01 ',''))
* add new record *
new (:__doPostBack('ctl00$cMain$dbRecordsC$ctl03$ctl00 ',''))
MX Record Manager : [Help? (http://kb.discountasp.net/article.aspx?id=10301)]
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 (:__doPostBack('ctl00$cMain$dbRecordsM$ctl02$ctl00 ',''))
delete (:__doPostBack('ctl00$cMain$dbRecordsM$ctl02$ctl01 ',''))
* add new record *
new (:__doPostBack('ctl00$cMain$dbRecordsM$ctl03$ctl00 ',''))
TXT Record Manager : [Help? (http://kb.discountasp.net/article.aspx?id=10301)]
NOTE: Text Record can contain SPF record.
Domain Name
TXT Data
TTL
* add new record *
new (:__doPostBack('ctl00$cMain$dbRecordsT$ctl02$ctl00 ',''))
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.
bruce
05-22-2008, 07:00 AM
what is your domain name? I can check it to make sure it works ok.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
jdcrutchley
05-22-2008, 08:57 AM
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.
bruce
05-23-2008, 07:45 AM
cool.. glad its working now.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
vBulletin® ©Jelsoft Enterprises Ltd.