cname just directs to sharedip

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

  1. giftsnake

    giftsnake New Member

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

    i would like to create cnames, so that e.g. gives the same result as gives. but: new cname, host 'mail' target '' 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?!

  2. falko

    falko Super Moderator ISPConfig Developer

    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 a CNAME record).
  3. giftsnake

    giftsnake New Member

  4. falko

    falko Super Moderator ISPConfig Developer

    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 file looks that way:

    looks all default to me :-/
  6. falko

    falko Super Moderator ISPConfig Developer

    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 ISPConfig Developer

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

    giftsnake New Member

    works. thanks!

Share This Page