July 29th, 2013, 05:22 PM
Hi, hoping someone can help me with my query!
I have a script that allows clients to have a complete bespoke website, but they are all on subdomains under a single domain, example:
I would like to know, how I can set up their domain names to point to their files on the server. For example I want to set it so that client1.com reads from client1.domain.com
Also what will I need to do to allow the clients to have emails example info @ client1.com?
I usually set emails up through my hosting CP but not sure if these need to be setup differently?
Thanks in advance!
July 29th, 2013, 08:11 PM
From a DNS perspective you would configure client1.com with an A record pointing at your web server or a CNAME pointing at client1.domain.com. Either way, you would then need to configure your web server software so that it serves client1.com from the appropriate directory on the file system.
For email addresses, you would need to configure an MX record for the domain that points at your mail server. Then you need to configure your mail server to serve mail for that domain.