Instructions for Setting up Domain Name using Hostmonster as the host provider 

Instructions for Setting up Domain Name using Hostmonster as the host provider 

Normal solution: 

  1. Delete A record for the root domain (labeled @)
  2. add a CNAME pointing to www. To example.odoo.com
  3. Add redirect from root domain (example.com) to subdomain (https://www.example.com)

Issue:

Hostmonster is an older hosting platform that cannot redirect the naked domain to the subdomain (www.) 

Solution: 

To overcome this issue, Cloudflare must be used to direct traffic for the host provider, circumnavigating any native functions of the hoster.

This doesn’t equate to a domain transfer; the domain remains registered with HostMonster, which charges you for its registration. However, you will need to be able to edit the name servers (NS) to use Cloudflare instead of HostMonster.

1. Setting up a Cloudflare Account 


  1. You’ll first need to create a Cloudflare account (free) and then “add a site,” meaning add your domain example.com. 
  2. Enter your website’s apex domain (example.com) and then select Continue.
  3. Select your plan level. For more details on features and pricing, refer to our Plans page.
  4. Review your DNS records. When you add a new site to Cloudflare, Cloudflare automatically scans for common records and adds them to the DNS zone. The records show up under the respective zone DNS > Records page.

Since this scan is not guaranteed to find all existing DNS records, you need to review your records, paying special attention to the following record types:

  1. If you find any missing records, manually add them.
  2. Depending on your site setup, you can adjust the proxy status for certain A, AAAA, or CNAME records.
  3. Select Continue

Note: If you activate your domain on Cloudflare without setting up the correct DNS records for your domain and subdomain, your visitors may experience DNS_PROBE_FINISHED_NXDOMAIN errors.

2. Update nameservers 


Once you have added a domain (also known as a zone) to Cloudflare, that domain will receive two assigned authoritative nameservers.

Before your domain can begin using Cloudflare for DNS resolution, you need to add these nameservers at your registrar. Make sure DNSSEC is disabled at this point.

Caution: If your domain is particularly sensitive to downtime, review our suggestions to minimize downtime.

  1. Login to your HostMonster Control Panel.
  2. Click the Domains tab along the top.
  3. Choose your domain name by putting a check mark next to it. The right side will populate with tabs.
  4. Please click the Name Servers tab on the right.
  5. Select Use Custom Nameservers.
  6. Enter in the new name servers.
  7. Click Save Nameserver Settings

Note: Please allow 24-72 hours for the DNS propagation of name servers to fully propagate.

3. Configure redirects from Hostmonster to Odoo


  1. Set up a CNAME record to point example.com to www.example.com.
  2. Set up a CNAME record (proxy status: DNS only) to point www.example.com to example.odoo.com.
  3. Flatten CNAME Records

Here is a link for more information about creating DNS records in Cloudflare https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/

  1.  A page rule to permanently (301) redirect example.com/* to  https://www.example.com/$1.

Here is a link to more information about page rules in Cloudflare https://developers.cloudflare.com/rules/page-rules/

4. Complete SSL/TLS setup


  1. In the Cloudflare dashboard find the ssl/tls settings
  2. Set the SSL/TLS encryption mode to “Full.”


Here is a link for more information on SSL?TLS setup https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/

To prevent insecure connections and visitor browser errors, make sure you have SSL/TLS protection and go through the Quick Start Guide to improve security.