COS-General

Connect a domain to HubSpot

Last updated: June 21, 2018

Applies to:

Marketing Hub: Basic, Pro, Enterprise

It's important to ensure that all of your HubSpot content is live and accessible as quickly as possible. This article provides you with the resources you need when you're ready to take your website live with HubSpot. 

 
Please note: in order to connect a domain to HubSpot, your domain's name server host must have the ability to point a CNAME record to HubSpot. Additionally, fully hosting your site with HubSpot requires a name server host that can set up a 301 redirect from the non-www version of your domain to the www version. If your DNS provider does not provide a 301 redirect, please reach out to our Support team and they can help you with a solution.

What does it mean to take my content live with HubSpot?

Taking your content live with HubSpot means associating the content in your HubSpot account - your landing pages, website pages, email, and blog posts - with your website domain. For example, if your website is www.hubspot.com, you can take your content live so it can be accessed by visitors on the web at that web address. 

Follow the instructions below to connect a new domain in HubSpot. You can also follow these steps to review your DNS setup and troubleshoot a disconnected domain with your provider. 

Connect your domain and copy your CNAME

Start the process by connecting your domain in your HubSpot domain manager and copying your CNAME: 

  • In your HubSpot Marketing Basic, Professional, or Enterprise account, click the settings icon settings in the top right corner of your main navigation menu. 
  • In the left sidebar menu, click Domains & URLs.
  • Under the Domains tab, click Connect a domain
  • Choose which type of domain you would like to connect: 
    • Primary: choose this option if you are hosting all of your website, landing page, blog, email, and knowledge base content on this subdomain. 
    • Secondarychoose this option if you want to use this subdomain for a specific campaign or an additional site, but want to keep it separate from your main site. 
    • Redirect: choose this option if the subdomain you're connecting will be redirected to another subdomain. 
    • Email Sending: choose this option if the subdomain you are connecting will be used to add another layer of authentication to your HubSpot emails. connect-primary-domain
  • Click Connect.
  • In the dialog box, type your subdomain (for example, info.mydomain.com). You cannot connect root domains (e.g. mywebsite.com) in HubSpot. Click Next.enter-domain
  • Choose which type of content you are creating for this domain: Website, Landing pages, Blog, Email, or Knowledge base. For example, if you are connecting info.mywebsite.com and only want to host landing pages and blog posts on this domain, select the checkbox to the left of Landing pages and Blog. Click Next.content%20types
  • Verify that the subdomains set up for each content type are correct. This is useful if you are using the same root domain for all of your content, but you are hosting each content type on a different subdomain. For example, if you want to host your blog content on the subdomain blog., change the subdomain for blog content to blog.mywebsite.com instead of www.mywebsite.com in this flow. Once these subdomains are configured, click Nextdifferent-subdomains-for-each-content-type
  • Now you are ready to set up your hosting with your DNS provider. If you use GoDaddy, click Update by CNAME. By clicking this call-to-action and logging into your GoDaddy account, you're allowing HubSpot to access your GoDaddy account and automatically update your CNAME in your DNS records. If you'll be connecting your entire website to HubSpot, you'll still need to make some manual changes to your DNS records. Learn more belowgodaddy-set-up-hosting
  • If you're not using GoDaddy or if you'd rather make the changes to your DNS configuration manually, click No, I'll set it up manually
    • First confirm that your content is ready to go live and check I am ready
    • Log into your DNS provider. You will need access to your DNS provider in order to update the CNAME record; if you do not have access or are unsure how to do this, please share this page with your IT team or contact your DNS provider directly. Check I am logged in.
    • In the main navigation menu of your DNS provider, go to DNS > DNS settings. If you can't find your DNS settings, reference the steps outlined by provider below. Check I'm there.
    • Update your DNS records for your domain. Under the Host (Name) column, locate the subdomain you are updating and copy the value under the Value column. Update the record type with this copied value in your DNS settings. Click Done.  update-dns-records
    • Verify your DNS changes, then click Done

Update your DNS records

Before making any DNS changes, ensure that your nameservers are hosted with your current DNS provider. If you need help making changes to your nameservers, reach out to your IT department or to your DNS provider's support team. Also, we recommend taking a screenshot of your DNS records with the original CNAME records for your files before making changes. 

To update your DNS records:

  • Log in to your DNS account.
  • Locate the exsting CNAME record for the subdomain you're connecting or create a new one.
  • Enter the prefix for your subdomain (www, info, blog, etc.) into the host, name, or alias field.
  • Paste the CNAME record you copied from HubSpot, [your Hub ID].groupX.sites.hubspot.net, into the target or points to field.
  • If you'll be hosting your entire website with HubSpot and your DNS provider supports forwarding, set up a redirect in your DNS settings so your non-www domain (such as hubspot.com) will forward to your www domain (such as www.hubspot.com).  
The navigation instructions and field names may differ across DNS providers. Your DNS provider manages your domain name and is typically where you purchased your domain. This is where you will make changes to your DNS records when you go live with HubSpot. You can find instructions for editing DNS records in commonly used DNS providers below: 

 

Root domains cannot be connected to HubSpot. You will need to redirect your root domain with your DNS provider. Use the instructions by provider linked below to set up the root domain redirect with your DNS provider before connecting your domain to HubSpot. 

If you're not sure who is hosting your domain, consult with your IT department or look up your domain

Please note: if you need additional assistance making changes to your DNS records, please reach out to your DNS provider's support team.  

GoDaddy

If you're using GoDaddy as your DNS provider and you've decided to edit your CNAME record manually, first ensure that your nameservers are hosted by GoDaddy. Then log into your GoDaddy account and locate and edit the existing CNAME record for your subdomain or create a new one.

  • In the Points to field, replace @ with the CNAME record that you copied from HubSpot. Click Save.

When you're finished updating your DNS records, wait for domain provisioning to complete

Network Solutions

To change your CNAME record in Network Solutions, first ensure that your name servers are hosted with Network Solutions. Then you can edit your CNAME:

  • In the blank Alias field in your Network Solutions account, enter the prefix of the subdomain that you would like to connect to HubSpot.  
  • Click the Other Host radio select button. Paste the CNAME address that you copied from your HubSpot account into the Other Host field and click Continue
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in Network Solutions to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com). To set up forwarding, you can purchase forwarding from Network Solutions, or use a forwarding IP address:
    • Click Edit A Records on the Domain Names screen under the My Products and Services tab.
    • For the @ none, enter the following IP address: 205.178.189.129.
    • Delete the records for the WWW and *(All others). The WWW and the * record will still appear in the A Records, but will have none next to them.
    • Select Continue and Save Changes.

When you're finished updating your DNS records, wait for domain provisioning to complete

eNom

First, make sure your name servers are hosted with eNom. Then edit your CNAME record in eNom:

  • In the Host Records section of eNom, below your existing records, there's a blank entry for adding new records. In the blank Host field, enter the prefix of the subdomain that you would like to connect to HubSpot. 
  • Change the record type dropdown menu from A (Address) to CNAME (Alias). 
  • Paste the CNAME record that you copied from your HubSpot account into the Address field and click Save.   
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in eNom to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com).

When you're finished updating your DNS records, wait for domain provisioning to complete

1and1

If you moved your nameserver to another host after registering the domain with 1and1, you'll need to make the changes on the other host. If you're hosting your domain's nameservers with 1and1 you should add your new subdomain to 1and1. Once your new subdomain has been added, edit your DNS records to add a CNAME

  • Scroll to the A/AAAA and CNAME Records section of your subdomain's DNS settings.
  • Select the radio button for CNAME.
  • In the Alias field, paste your CNAME value. Be sure to click the checkbox below the Alias field and click Save to save the CNAME record. 
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in 1and1 to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com) by following these instructions.   

Please note: with 1and1, the redirect that you can set up from the root domain (domain.com) to the subdomain (www.domain.com) can only be set up as a 302 redirect. This redirect is also not a wildcard. A 301 wildcard redirect is the best method to implement a permanent redirect.

When you're finished updating your DNS records, wait for domain provisioning to complete

DNS Made Easy

If you moved your nameserver to another host after registering the domain with DNS Made Easy, you'll need to make the changes on the other host. If your domain has its nameserver set to DNS Made Easy, then you can edit your CNAME record

  • In the Managed DNS section of your DNS Made Easy account, add the www (or other subdomain) CNAME record by clicking on the plus sign under the CNAME Records section. To edit a current subdomain's CNAME record, place a check mark next to the record and click on the pencil icon
  • Type www (or blog, info, etc.) into the Name field and then paste the HubSpot CNAME value into the Alias to field. Add a period to the end of the CNAME value and then click Submit
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in DNS Made Easy to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com).

When you're finished updating your DNS records, wait for domain provisioning to complete

Bluehost

If you moved your nameserver to another host after registering the domain with Blue Host, you'll need to make the changes with the other host. If your nameservers are already hosted by Bluehost, then you can go ahead and edit your DNS records in BlueHost

  • Navigate to your cpanel in Bluehost.
  • Scroll down to the Domain management section and click on DNS Zone Editor
  • If you see the record you'd like to use in the A-Host section, delete it.
  • Add in a CNAME record or edit your existing CNAME record by pointing it to HubSpot's CNAME address.
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in Bluehost to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com).

Please note: if you need further assistance setting up the wildcard redirect for forwarding in Bluehost, you'll need to either set up the redirect yourself by editing the .htaaccess file if you're familiar with this,or contact Bluehost support to have them set up the 301 redirect for you.

When you're finished updating your DNS records, wait for domain provisioning to complete.

Namecheap

If you have moved your name servers to another host, after registering the domain with Namecheap, you will need to make the changes with that other host instead. If your nameservers are hosted with Namecheap, then you can go ahead and edit your DNS records

  • After logging into your Namecheap account, find the Host Records section of your Advanced DNSsection.  
  • Click Add new record and select CNAME Record from the dropdown menu. 
  • In the Host field for your new record, enter the prefix of the subdomain that you would like to connect to HubSpot. Then paste your CNAME record into the Target field and click the checkmark towards the right to save. 
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in Namecheap to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com).

When you're finished updating your DNS records, wait for domain provisioning to complete.

iPage

If you moved your nameservers to another host after registering the domain with iPage, you'll need to make the changes on the other host. If your nameservers are already hosted by iPage, then you can edit your DNS records:  

When you're finished updating your DNS records, wait for domain provisioning to complete

Register.com

If you moved your nameserver to another host after registering the domain with Register.com, you'll need to make the changes on the other host. If your nameserver is already hosted with Register.com, then you can go ahead and edit your DNS records

  • Log into your Register.com account to manage your domains. 
  • Locate the Advanced Technical Settings section and click Edit Domain Aliases Records next to CNAME
  • Add a new CNAME record for www (or, if you're only adding a subdomain, add in the appropriate subdomain here such as info. or blog.) and then add the CNAME record you copied into the text box after points to. Click Continue, then Continue again to confirm your changes. 
  • If you're hosting your entire website with HubSpot, you'll need to set up forwarding in Register.com to redirect your root domain (e.g. mydomain.com) to your www subdomain (e.g. www.mydomain.com). You can use this link to log into your Register.com account and set up forwarding. 

When you're finished updating your DNS records, wait for domain provisioning to complete

 

Wait for domain provisioning to complete

Once your domain provisioning is complete, SSL will be enabled automatically. This usually takes about 10 minutes. 

While standard SSL is enabled free of charge for Marketing Basic, Professional, and Enterprise customers, if you're interested in purchasing dedicated SSL or custom third-party certificates, you can contact your Customer Success Manager.

 

Require the secure https protocol

When SSL is enabled and your site is secure, your site's protocol will be https instead of http. To require the secure https protocol for your site visitors:  

  • Return to your domain manager in your HubSpot account by navigating to the settings icon settings in the top right corner of your main navigation menu. 
  • In the left sidebar menu, click Domains & URLs.
  • Click Edit to the right of your newly connected domain. 
  • In the dialog box, select the checkbox beside Require HTTPS. Then click Save.

Please note: after SSL is enabled, content loaded over http (such as images and stylesheets) will not load on your site. Content loading over http on an https site is referred to as mixed content.

If you are looking to set up a reverse proxy on HubSpot, note that setting up the HubSpot CMS with a SSL reverse proxy is not supported or recommended as it can compromise performance and security. 

If you are preparing to host your HubSpot site using SSL (HTTPS), you might want to test it locally to make sure it will resolve. However, trying to test the secure CNAME by creating an entry in your hosts file will fail because there is a dependency on the authoritative DNS chain being accurate.

HubSpot Help article screenshot

Was this article helpful?