CMS-General

Connect a domain to HubSpot

Last updated: August 22, 2019

Applies to:

Marketing Hub  Professional, Enterprise
Legacy Marketing Hub Basic
HubSpot CMS

Connect your domain to HubSpot and edit your DNS records so that your landing pages, website pages, email, and blog posts can be accessed by visitors on the web.

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.

Please note: to connect a domain to HubSpot, your domain's nameserver host must have the ability to point a CNAME record to HubSpot and 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, reach out to HubSpot Support for further assistance.
 

Connect your domain

Start the process by connecting your domain in your HubSpot domain manager.

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Domains & URLs.
  • Click Connect a domain.
  • Select the type of domain you want to connect:
    • Primary: a subdomain used by default for hosting the selected content type(s) in HubSpot.
    • Secondary: a subdomain available for hosting content in HubSpot, but not set as primary for any of your content types (Marketing Hub Enterprise only).
    • Redirect: this subdomain isn't used to host any content, but automatically redirects to another primary domain connected in HubSpot.
    • Email Sending: the subdomain you're connecting will be used to add another layer of authentication to your HubSpot emails. Learn more about how to connect an email sending domain.
  • Click Connect.
connect-primary-domain

1. Select the content type

  • Select the checkbox next to the content type you will host on this domain.

    Please note: the Email content type is for the web version of your marketing emails. Learn how to connect an email sending domain to authenticate the From address used to send your marketing emails.

    connect-domain-choose-content
  • Click Next.

2. Enter the domain

  • In the text field, enter your domain. This is not the subdomain, but the root domain itself.domain-manager-enter-domain-name
  • Click Next.

3. Verify URLs

  • Set up the domain you will post your content to. There are four components of your domain:
    1. Subdomain: the subdomain is the first part of the domain name (e.g., www is the subdomain for www.mywebsite.com and landing is the subdomain for landing.mywebsite.com). You can customize this for business or marketing purposes.
    2. Brand domain: the brand domain is in between the subdomain and the top-level domain(e.g. mywebsite is the brand domain for www.mywebsite.com). If you are connecting a domain for the first time, this domain will be set as your account's brand domain.
    3. Top-level-domain: the top-level domain is the end of the domain that comes after the brand domain. For example, .com is the top-level domain for www.mywebsite.com.
    4. Primary language: the primary language helps search engines figure out the language of your page content for the subdomain. Learn more about managing multi-language content.

      domain-connect-primary-language
  • Click Next.

4. Hosting setup

  • Now you are ready to set up your hosting with your DNS provider. If you use GoDaddy, click Update my CNAME. By clicking this call-to-action and logging in to your GoDaddy account, you're allowing HubSpot to access your GoDaddy account and automatically update your CNAME in your DNS records. If you are connecting your entire website to HubSpot, you'll still need to make some manual changes to your DNS records.
godaddy-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, then select the I am ready checkbox.
    • Log in to your DNS provider. You'll need access to your DNS provider to update the CNAME record. If you don't have access or are unsure how to do this, share this page with your IT team or contact your DNS provider directly. Once you're logged in, select the I am logged in checkbox in HubSpot.
    • In the main navigation menu of your DNS provider, navigate to DNS > DNS settings. If you can't find your DNS settings, reference the steps outlined by provider. Then, select the I'm there checkbox in HubSpot
    • In you DNS provider, 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.

      update-dns-records

    Please note: if you're using Network Solutions or NameCheap for hosting, or are adding your records to GoDaddy manually, these providers add your brand domain and top level domain to the end of these DNS record automatically. You only need to enter the subdomain in the host name field in your DNS settings.

    • Once you update you DNS records, select the Done checkbox in HubSpot.
    • 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, it is recommended to take 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 existing 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).

Please note: root domains cannot be connected to HubSpot, only subdomains can be connected. You will need to redirect your root domain within your DNS provider.

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:

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, 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 in to 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 Network Solutions:

  • In the blank Alias field, enter the prefix of the subdomain that you want to connect to HubSpot.
  • Select the Other Host radio button.
  • In the Other Host field, paste the CNAME address (copied from the Value column in your HubSpot account). Then click Continue.
  • If you're hosting your entire website with HubSpot, you'll also 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.

Cloudflare

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

  • Login to your Cloudflare account.
  • In the upper left, click the dropdown menu and select your domain.
  • Select the DNS settings tab.
  • Add the CNAME address (copied from the Value column in your HubSpot account)
  • Next to the new CNAME record on the right, change the orange cloud to a gray cloud so the record can be recognized by HubSpot.
  • Click Add record.
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 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 .htaccess file, 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 in to your Namecheap account, find the Host Records section of your Advanced DNS section.
  • 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 select the checkmark on 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 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 hosted with Register.com, then you can go ahead and edit your DNS records:

  • Log in to 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.

AWS (Route 53)

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

  • Log in to your AWS dashboard.
  • In the left menu, click Hosted zones.
  • In the list of domains, select the domain that you want to edit.
  • If you haven't created your subdomain yet, click Create Record Set. If you want to connect an existing subdomain to HubSpot, select the CNAME record that you want to edit.

    route-53-management-console-create
  • In the right panel, enter the subdomain into the Name field. For example, www or blog.
  • In the Type dropdown menu, select CNAME.
  • Next to Alias, select No.
  • In the Value field, enter the value provided by HubSpot. The value will resemble 1234567.group1.sites.hubspot.net

    connect-domain-value
  • By default, the Routing Policy is set to Simple. In most cases, you won't need to adjust this. Learn more about routing policy options

    route-53-create-record-set
  • Click Create. If you're editing an existing record set, click Save Record Set.

Learn more about configuring Amazon Route 53 as your DNS service.

 

Wait for domain provisioning to complete

Once your domain provisioning is complete, SSL will be enabled automatically. This usually takes about 10 minutes, but can take up to 24 hours.

Standard SSL is enabled free for Legacy Marketing Hub Basic accounts, Marketing Hub Professional and Enterprise accounts, and standalone HubSpot CMS accounts. If you're interested in purchasing dedicated SSL or custom third-party certificates, contact your Customer Success Manager.

When using SSL with HubSpot, the SAN certificate will automatically renew every 90 days as long as both conditions listed below are true:

  • You are still a HubSpot customer.
  • You still have your domain CNAME pointed to the secure server which was set up in the initial process.

If you're using a custom certificate, a HubSpot team member will reach out 14-30 days ahead of time to discuss renewal and any necessary technical steps.

Please note: DigiCert is the certificate authority that provisions a certificate for your domain. If your domain has a Certification Authority Authorization (CAA) record, ensure digicert.com is listed so SSL can be provisioned or renewed.

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:

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, select Domains & URLs.
  • Click Edit to the right of your newly connected domain.
  • In the dropdown menu, select the Require HTTPS checkbox.
  • 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 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.

Can I use my existing SSL certificate with HubSpot?

Using a pre-existing certificate may compromise the security of that certificate, so HubSpot does not allow this. If you purchase HubSpot's Custom SSL Service, you can use a third-party certificate and that certificate must be paired using a certificate signing request (CSR) generated from HubSpot's server.

Domain ownership validation email

Verifying your domain is not required. However, it allows HubSpot to provision SSL before connecting the domain. This means there will be no SSL downtime when you make DNS changes to point your domain to HubSpot. To verify the ownership of a domain:

  • In step 1 of the Verify URLs stage, click Click here.
  • In the dialog box, click Send verification email. This will prompt an email to the email address registered with the domain, as stored with who.is.
  • Click the link in the email.

If you are not receiving a validation email:

  • Check your spam and junk folder for an email from <support@certvalidate.cloudflare.com>.
  • Check the email address registered to your domain. Ensure you are checking this email's inbox.
  • Add your email address to who.is.
If you check your spam and junk folder and are not able to add your email to who.is, contact HubSpot Support to discuss additional options.