Webforwards and DNS subdomains

Discussion in 'Installation/Configuration' started by zetnsh, May 13, 2008.

  1. zetnsh

    zetnsh New Member

    Hi there!

    Two questions in one post I'm afraid :)

    Firstly, how do I set up a subdoman in the DNS manager? If I have an existing domain xyz.com managed by ISPConfig, how would I set up the nameserver records for abc.xyz.com ?

    Secondly, how do I set up a webforward on a domain, eg. rather than having webspace for www.xyz.com, it would redirect to another site? I know how to do this with apache directives, but wondering if there was a way within ISPConfig?

    Thanks,

    Neil
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a new A-Record for the subdomain, were you enter the "sub" part in the host field.

    Create a co-domain and enter the destination in the forward field under options of the co-domain.
     
  3. zetnsh

    zetnsh New Member

    Hi Till,

    Thanks for your reply, but I might not have made the issues clear enough.

    1) What I'm talking about is actual NS records rather than A records. When I add an A record through ISPConfig, an A record is what's created. I don't see the option to add an NS record, which is what is needed to set up nameservers for an entirely separate DNS zone which works, with it's own file on the server.

    I have to use a separate file (ie zone) because my secondary DNS provider uses all the primary zones on my main server to know what to secondary for.

    2) For the webforward, I can see how you might set up a webforward for a co domain using the technique you mentioned, but what about setting up a webforward for the main domain?

    Ie. if the server is www.abc.com with an automatically created co-domain of abc.com, how do I get both to forward? If I set it up in the co-domain, will it just "work" ?

    Thanks again,

    Neil
     
  4. falko

    falko Super Moderator Howtoforge Staff

    The NS records are set up on the "Options" tab.

    There's no forwarding option for the main domain in ISPConfig.
     
  5. Dennis

    Dennis New Member

    A simple forward would be nice. In the mean time put this into the apache directives field of the main domain:

    Code:
    Redirect / http://www.anotherdomain.tld
     
  6. zetnsh

    zetnsh New Member

    I agree - it's actually pretty useless having it for a co-domain and not for the main domain.

    Also, regarding the nameservers, what I meant was being able to set an NS record for a host other than the domain itself. Eg. if the domain is xyz.com, I want to say the equivalent of:

    host1.xyz.com. IN NS dns0.myisp.com.
    host1.xyz.com. IN NS dns1.myisp.com.

    At the moment I can only do:

    @ IN NS dns0.myisp.com.
    @ IN NS dns1.myisp.com.

    Thanks,

    NEil
     

Share This Page