How do I point an existing domain to a website hosted by Afrihost

+3 votes
I have an existing .com domain registered with NameCheap.   Currently the DNS is managed by Microsoft Office365.  

I can add CNAME and A records etc. using the Office365 administration portal.    Currently the CNAME and A records point to an Azure website.
All my mail MX records point correctly to Office365 and these must stay in place.    

I now want to switch off the Azure hosted site and have the record to point to a locally hosted web server that is with Afrihost.    
I have an existing Afrihost shared hosting account with a free already registered.   I am happy to drop the domain if necessary and rebuild a hosted site from scratch.

It appears that a shared hosted site can only be configured for a single domain even if you try add DNS entries through the client zone (?)

How do I go about the changes?  
(1)  What CNAME and A records do I need to add/change to the DNS entries on Microsofts DNS service to point to the new hosted website?
(2)  What settings do I need to change on the Afrihost side to accept www requests from the .com domain?
(3)  If it is possible without cancelling and resubscribing, how would I change my shared hosted site to a new domain?

Sorry for the long question...
asked Oct 25, 2016 in DNS by Gav107 (200 points)
reshown Jan 13, 2017 by AfriDazzil

1 Answer

0 votes

Hi There,

  • You would need to add a cName record to point the www and non-www to your current server.

  • Then  add a redirect to the headers under the server alias of the domain hosted with Afrihost

  • Once the domain hits the server, it will redirect to the site


If you require further assistance please email:

or contact Afrihost support on 011 612-7200

or via live chat support on our website

alternatively you may request a call back by smsing the word 'help' to 32541


Thank you

answered Feb 16, 2017 by AfriDazzil (42,930 points)