cname just directs to sharedip

Discussion in 'General' started by giftsnake, Feb 4, 2009.

  1. giftsnake

    giftsnake New Member

    creating a website on ispconfig (domain.com) creates A records for hostname www and a forwarding (edit: co-domain) without hostname.

    i would like to create cnames, so that e.g. mail.domain.com gives the same result as www.domain.com gives. but: new cname, host 'mail' target 'www.domain.com' just shows up with the sharedip page.

    the dns entry in wikipedia tells, that cname lookups will be solved to ips, but if a server uses namebased virtualhosts, the cname is looked up as hostname.

    is it right that a cname directs to a different vhost than the target of the cname does? or is it just too simple for me to see?!

    thanks!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    It might take up to 72 hours until DNS changes propagate, so you might have to wait a little bit longer.

    BTW, you cannot use CNAMEs for MX record (I'm writing this because you made mail.domain.com a CNAME record).
     
  3. giftsnake

    giftsnake New Member

  4. falko

    falko Super Moderator Howtoforge Staff

    In this case this is true.

    Can you post the zone file?
     
  5. giftsnake

    giftsnake New Member

    in named.conf, the zonefile is set by:

    the pri.domain.com file looks that way:


    looks all default to me :-/
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. Can you post the vhost configuration?
     
  7. giftsnake

    giftsnake New Member

    cat /etc/apache2/vhosts/Vhosts_ispconfig.conf
     
  8. falko

    falko Super Moderator Howtoforge Staff

    You need to have mail.domain.com in the ServerAlias line of the vhost:
    Code:
    ServerAlias domain.com mail.domain.com
    To do this, add a Co-Domain mail.domain.com to that web site in ISPConfig.
     
  9. giftsnake

    giftsnake New Member

    works. thanks!
     

Share This Page