
28th September 2010, 10:36
|
|
Member
|
|
Join Date: Aug 2010
Posts: 52
Thanks: 3
Thanked 1 Time in 1 Post
|
|
DNS Problems with Subdomains
Hey there,
I wanted to fix a problems I recently encountered. I wanted to use subdomains. So for example: sub.example.com refers to example.com/sub
However, the DNS is not resolving this construction.
My domain address has a A- and MX-Record pointing to my server, and I can't create subdomains within my providers account. So how do I manage to get this working?
Kind Regards
Zero
|

28th September 2010, 11:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Either create dns a-records for the subdomains at your provider or you have to run your own nameserver and delegate that zone to your server.
|

28th September 2010, 12:12
|
|
Member
|
|
Join Date: Aug 2010
Posts: 52
Thanks: 3
Thanked 1 Time in 1 Post
|
|
I inserted a DNS Record on the Server (DNS (SOA)), so if this is what you are talking about, then I did it. However, how can I attach the domain to this name zone?
|

28th September 2010, 12:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
I inserted a DNS Record on the Server (DNS (SOA)), so if this is what you are talking about, then I did it.
|
Thats only one part. The other part is to make your nameserver authoritive for that domains. You have to do this at the registry where you bought the domain name, by settings the nameserver records at the registry to point to your server. The exact procedure is different for every provider, so you might take a look into the help or manual pages of your domain provider for details.
|

28th September 2010, 13:03
|
|
Member
|
|
Join Date: Aug 2010
Posts: 52
Thanks: 3
Thanked 1 Time in 1 Post
|
|
Problem located v.v
My provider denies to change the nameservers. so either I have to tell my customer, that there a no subdomains possible (or are they, but with Apache mod_rewrite? if so, how?), or I have to change the domain provider with at least 15 domains..... damn
|

28th September 2010, 13:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
When you have no dns record for a subdomain, then this subdomain does not even point to your server so it does not matter if you create a vhost or a mod_rewrite rule, they will never match ast the browser does not even know which server he shall contact for that subdomain.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:10.
|
|
Recent comments
1 day 8 hours ago
1 day 8 hours ago
1 day 13 hours ago
1 day 20 hours ago
1 day 20 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 9 hours ago
2 days 12 hours ago
2 days 14 hours ago