If you buy a domain from a domain registrar, HCS will host the domain for you so that you can use your domain as the address for any of the pages on your website. We can even set up multiple domains (each of which is called a "virtual host") on your account.
There are some things that you need to bear in mind before you start:
- HCS does not sell domains, nor maintains them. You still are responsible for buying a domain and paying for it yearly.
- HCS does not host a nameserver. You will need to continue to use your domain registrar's nameserver, or another nameserver if you so choose. (A nameserver is a server that, when given a host name, returns the correct IP address for a host on the Internet.)
Here is a basic outline of what you need to do:
- Buy a domain from a domain registrar.
- Change the following settings in your nameserver (assuming that your domain is example.com; most domain registrars provide an account control panel where you can change these settings):
- example.com should be a CNAME (Canonical Name) for www.hcs.harvard.edu.
- If you want, www.example.com could also be a CNAME for www.hcs.harvard.edu if you want to access your website via www.example.com.
- Important Note: If you also use e-mail on your domain (in the form firstname.lastname@example.org), you cannot set example.com to be a CNAME for www.hcs.harvard.edu and still have it work. Also, your domain registrar's nameserver may not allow a CNAME record to be used for your top-level domain (which in this case would be example.com). You can get around these problems by using CloudFlare, which will allow you to set a CNAME record in both cases above. Set up an account on CloudFlare, follow the instructions for migrating your nameserver to CloudFlare, and then follow the steps above to set up your domain in preparation for the virtual host. If you absolutely detest using CloudFlare, you may use our server IP address 184.108.40.206 for an A record on your domain. Note, however, that this IP address may be changed at some point in the future, in which case you would need to update the A record manually for your website to continue working.
- Finally, head over to the "Virtual Hosts" tab on Helios and enter in the details for your new virtual host(s). You should have an entry for each virtual host you want to register with us.
- Domain Name refers to your domain name (e.g. example.com, www.example.com, sub.example.com, etc.). Only one domain name should be entered in the field.
- You can choose to serve a website on your domain name. If you choose to do so, you have to enter fill in the Document Root, which refers to the location of your website in your home directory (e.g. /home/people/jharvard/web/example.com).
- You can also choose to receive emails on your domain name. This would require adding an MX record on your domain pointing to our mail server mail.hcs.harvard.edu. Mails received at any address with the pattern email@example.com would be redirected to your account's @hcs.harvard.edu email.
- Note that our virtual host tool is flexible as to which subdomains you host with us. So if you want, you can just host elephant.example.com with us—there's no requirement that your top-level domain or your WWW domain be hosted with us.