DNS Problems with Subdomains

Discussion in 'Tips/Tricks/Mods' started by ZeroEnna, Sep 28, 2010.

  1. ZeroEnna

    ZeroEnna Member

    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

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. ZeroEnna

    ZeroEnna Member

    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?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  5. ZeroEnna

    ZeroEnna Member

    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
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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.

Share This Page