Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Subdomains and DNS
PostPosted: Thu Aug 07, 2008 7:04 pm 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
I know how to set up virtual hosts, but that doesn't have anything to do with subdomains connecting to apache at all, does it?

I have mydomain.com, and test.mydomain.com can't find a server, while mydomain.com does. I looked in the DNS manager, and it doesn't seem to have any kind of wildcard entry. How do I set this up?

Thanks
~sean


Top
   
 Post subject:
PostPosted: Thu Aug 07, 2008 7:20 pm 
Offline
Senior Newbie

Joined: Sat Jun 21, 2008 9:19 pm
Posts: 5
Setup a CNAME record '*' that aliases to your hostname.


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 5:05 am 
Offline
Junior Member

Joined: Wed May 21, 2008 5:34 am
Posts: 46
Website: http://www.eve-razor.com/forum
Location: Austin, Tx
you can also do a "A" record

test A 600 mydomain.com

record

it will do the same as a cname


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 8:53 am 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
Thanks guys... that was easy


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 11:08 am 
Offline
Senior Newbie

Joined: Sun Aug 03, 2008 11:51 am
Posts: 14
Website: http://fdcga.com
Location: Georgia, USA
MrRx7 wrote:
you can also do a "A" record

test A 600 mydomain.com

record

it will do the same as a cname


OK, which of the two methods is preferred? Is there a reason to use one over the other?

I'm still trying to get my hands around DNS.

Thanks,
Jim.


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 12:13 pm 
Offline

Joined: Wed Jul 30, 2008 12:56 pm
Posts: 1
First, what is being defined here is not a sub-domain at all. In the case of the A record, it is a single host that is in the domain 'mydomain.com'. In the case of the wildcard CNAME, it is a record that resolves any name to the A name referred to in the CNAME record.

Ideally, a wildcard CNAME entry should never be used. I don't believe that it is standard, and I know from personal experience that it will not always work as expected or desired, especially with software that does extensive DNS queries, such as an MTA or webserver.

If you want a host to be referred to by many names, you can either use multiple A records or a single A record and multiple CNAME records.

Feel free to use nslookup or dig to check ashevin.com to see how I manage my own domain.


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 12:21 pm 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
Quote:
If you want a host to be referred to by many names, you can either use multiple A records or a single A record and multiple CNAME records.


But is there a "standard" way to point all subdomains to the same place?


Top
   
 Post subject:
PostPosted: Sat Aug 09, 2008 3:45 am 
Offline
Junior Member

Joined: Wed May 21, 2008 5:34 am
Posts: 46
Website: http://www.eve-razor.com/forum
Location: Austin, Tx
seanhess wrote:
Quote:
If you want a host to be referred to by many names, you can either use multiple A records or a single A record and multiple CNAME records.


But is there a "standard" way to point all subdomains to the same place?


I have used both and either will work fine, I have not noticed any differences between either method. I personally use "A" records for my subdomains


Top
   
 Post subject:
PostPosted: Sat Aug 09, 2008 11:22 am 
Offline
Senior Newbie

Joined: Sun Aug 03, 2008 11:51 am
Posts: 14
Website: http://fdcga.com
Location: Georgia, USA
AverageGuy wrote:
OK, which of the two methods is preferred? Is there a reason to use one over the other?


So I guess the answer in the simple case is no.

Thanks,
Jim.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group