Domains & URLs

Update your DNS records

Last updated: March 4, 2020

Applies to:

Marketing Hub  Professional, Enterprise
Legacy Marketing Hub Basic
HubSpot CMS

When you connect your domain to HubSpot, you'll need to update the DNS records in your DNS provider. Below are general instructions for updating your DNS records, as well as detailed instructions for the most common DNS providers.

What to keep in mind

Before making any changes to your DNS records, keep in mind the following:

  • It's recommended to take a screenshot of your DNS settings before making any changes.
  • Root domains cannot be connected to HubSpot, only subdomains can be connected. You will need to redirect your root domain within your DNS provider. If your DNS provider does not allow 301 redirects, reach out to HubSpot support for further assistance.
  • 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.
  • If you need additional assistance making changes to your DNS records, reach out to your DNS provider's support team.

General DNS instructions

If your provider is not in the list of providers below, you can use these general instructions to update your DNS records. Field names may vary from provider to provider, for example host, name, and alias may describe the same field depending on the provider. To update your DNS records:

  • Log in to your DNS provider account, such as GoDaddy or Namecheap.
  • Locate the existing CNAME record for the subdomain you're connecting or create a new one.
  • In the host, name, or alias, field, enter the prefix for your subdomain (www, info, blog, etc.).
  • In the target or points to field, paste the CNAME record you copied from HubSpot. It should look like: [your Hub ID].groupX.sites.hubspot.net. 
  • If you're 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).

Instructions by DNS provider 

Your DNS provider manages your domain name and is typically where you purchased your domain. This is where you make changes to your DNS records when you go live with HubSpot. The navigation instructions and field names may differ across DNS providers. Below are instructions for editing DNS records in the most commonly used DNS providers. 

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

GoDaddy

If you're using GoDaddy as your DNS provider and want to edit your CNAME record manually, 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 blue that you copied from HubSpot. It should look like: [your Hub ID].groupX.sites.hubspot.net. 
  • 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, ensure that your name servers are hosted with Network Solutions. To  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 that you copied from the Value column in your HubSpot account. It should look like: [your Hub ID].groupX.sites.hubspot.net. 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, ensure that your name servers are hosted with Cloudflare. To edit your CNAME in Cloudflare:

  • 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). It should look like: [your Hub ID].groupX.sites.hubspot.net. 
  • 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

Ensure 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 want to connect to HubSpot, for example www.
  • 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:

  • Locate 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. It should look like: [your Hub ID].groupX.sites.hubspot.net. 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.

/cos-general/update-your-dns-records