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, and does not recommend any particular domain registrar. 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 should also be a CNAME for www.hcs.harvard.edu.
- Important Note: If you also use e-mail on your domain (in the form email@example.com), you cannot set EXAMPLE.COM to be a CNAME for www.hcs.harvard.edu and still have it work. Your domain registrar's nameserver (such as GoDaddy) may also not allow a CNAME specifically for your top-level domain (which in this case would be EXAMPLE.COM) for some reason. 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 220.127.116.11 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 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.
- 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 firstname.lastname@example.org 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.