Alias ​​for the second domain

Discussion in 'Installation/Configuration' started by kurdak, Nov 21, 2012.

  1. kurdak

    kurdak New Member

    Welcome.
    I have a problem with the other domain.
    I have two domains, kurdak.eu on the domain server is configured. The second domain is, kurdak.pl, I want it to be a domain alias for kurdak.eu.
    Domain: kurdak.eu is redirected to DNS: ns1.kurdak.eu, ns2.kurdak.eu.
    Domain: kurdak.pl is redirected to DNS: ns1.kurdak.eu, ns2.kurdak.eu.
    DNS settings:
    [​IMG]
    I added a domain alias for assistive technologies etc.:
    [​IMG]
    What can I do to make it work properly.
    Please and information about what I'm doing wrong.
    I also want to automatically run my subdomain.
    Regards.
     
    Last edited: Nov 21, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The dns records are wrong. Each domain has its own zone in dns.

    1) delete the alias kurdak.pl in the kurdak.eu zone.
    2) Create a new dns zone for kurdak.pl similar to the one that you created for kurdak.eu so that kurdak.pl has a.records that point to the ip address of your server. the aliasing between the two domains is made by apache, so you dont have to add a alias record in dns.
     
  3. kurdak

    kurdak New Member

    Now my settings look like this:
    Zones:
    [​IMG]
    Zone kurdak.eu:
    [​IMG]
    Zone kurdak.pl:
    [​IMG]

    Settings domain kurdak.pl still have to be on: ns1.kurdak.eu, ns2.kurdak.eu?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, thats ok. Just ensure that you use the same nameservers in the domain registration interface of the provider that you used to register the domain.

    You might want to add a wildcard A-record in the .pl zone as well as you used a wildcard in the website alias domain.
     
  5. kurdak

    kurdak New Member

    Well I added record * to kurdak.pl.
    Now, one more question.
    I say subdomain: joomla.kurdak.eu, do I have to add something to the zones or alias subdomain to work me: joomla.kurdak.pl?
    Is this to be done automatically?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    As you have wildcard records in both zones, you dont have to add a dns record for a subdomain before you can use it. And if you use auto subdomain * in th alias domain and website of the sites module as well, then all subdomains get routed to this website automatically.
     
  7. kurdak

    kurdak New Member

    Then the idea is that it does not work well until the end.
    Say joomla.kurdak.pl and joomla.kurdak.eu work perfectly.
    Crm.kurdak.eu subdomain works ok, but subdomain: srm.kurdak.pl redirects to kurdak.eu.
    This is my kurdak.pl DNS Zone:
    [​IMG]
    What am I doing wrong?
     
    Last edited: Nov 21, 2012
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    But thats what you have setup. All subdomains of the domain kurdak.eu and of the domain kurdak.pl point to the same web directory, so no matter what you enter in the briwser, the same files shall be displayed.
     
  9. kurdak

    kurdak New Member

    Super, I can somehow change to make it work automatically?
    I would like to get this effect when setting up a new subdomain to domain kurdak.eu automatically set to the subdomain alias kurdak.pl domain.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    You setup already all possible subdomains by adding a wildcard record, so there is nothing left that would require a manual nor automatic setup. Neither in dns nor apache.
     
  11. kurdak

    kurdak New Member

    Thank you very much for your help. You are the boss!
     

Share This Page