Custom domain and DNS
When an app is created, Bubble uses the name you provide to generate a unique URL where you can run both the development and live branches of your app. For example, if your app has the name my-bubble-application, Bubble generates the URLs below:
https://my-bubble-application.bubbleapps.iohttps://my-bubble-application.bubbleapps.io/version-test/What does it mean to connect to a custom domain?
Setting up a custom web domain means configuring your app to be accessed through a specific domain name that you've chosen, rather than the default address provided by Bubble. This involves registering a unique domain name (like www.my-custom-domain.com) and then linking it to your website. In that sense, the domain makes up the "root" of all your app's URL's.
https://www.my-custom-domain.comhttps://www.my-custom-domain.com/version-test/Connecting to a custom domain means to customize your site’s URL, making it more recognizable and often more professional-looking, reflecting your brand or the app's purpose more accurately.
Quick guide: setting up a custom domain
Setting up a custom domain is done in three steps:
Register the domain
The first step is to buy the domain you want, and register it with a registrar.
Add the domain in Bubble
Then, you add that domain (such as www.example.com) in the Bubble editor.
Change DNS settings
After registering the domain in Bubble, we will provide you with DNS settings that you need to register with your registrar.
Example.com versus www.example.com
Most apps and websites are expected to load regardless of whether the user types in example.com or www.example.com as the URL. For SEO purposes, Bubble automatically redirects one to the other, depending on which one you entered as your app's custom domain.
For example:
example.com
https://www.example.com
https://example.com
www.example.com
https://example.com
https://www.example.com
In-depth guide: setting up a custom domain
Using a domain that incorporates the term bubble, such as www.bubbleagency.com, is not permitted for a custom domain in Bubble. This is because it violates our terms of service. Custom domains must avoid using 'bubble' to maintain compliance with our guidelines.
Page: Terms of service
Step 1: Register the domain
Domains are purchased from a company known as a domain registrar. Once it has been purchased, it becomes your unique identifier on the web, and no one can register the same domain as you. Many domains are registered for the first time, but there's also a market for buying existing domains that ranges from a few US dollars to several million.
Users access your app by typing its domain into their browser's address bar. Think of it as the digital equivalent of your physical address — it's how people find you on the internet.
Step 2: Add the domain in Bubble
It doesn't matter which registrar you have used when you want to configure it in Bubble, as long as you have access to make changes to the domain's DNS settings.
To set up the domain with your app, do the following:
Enter the name
Enter the domain you purchased in step 1, in the Domain name input field.
When you've completed these steps, Bubble will show you the DNS records that you need for step 3. Typically, they look something like this:
Do not use the IP addresses below – they are only meant as an illustration. Use the IP addresses that Bubble provides in the Domain subtab.
A
104.16.36.105
A
104.16.42.105
A
104.19.240.93
A
104.19.241.93
A
www
104.16.36.105
A
www
104.16.42.105
A
www
104.19.240.93
A
www
104.19.241.93
This table outlines the DNS A record configurations with their respective types, names, and values.
Step 3. Change the DNS settings
After obtaining the DNS details, there's no need to make any more adjustments within Bubble. Your next steps should be carried out in the domain registrar service where your domain is managed.
Remove empty A records
In this section, remove any existing A records that have an empty name ('') or www. Note that some registrars use '@' as a placeholder for an empty domain.
Propagating the changes
After setting up the DNS records, the new settings need to propagate across the internet. This can take up to 24 hours, but usually you should see some results after 2-4 hours, and sometimes faster.
Checking the DNS settings
Bubble lets you check the success of the operation below the records, and you can check the process by clicking on the Check my settings button. If you encounter an error, it could indicate that the records have not been configured correctly, or that the changes have not yet propagated through the system. See our FAQ below for possible solutions to common errors.

As soon as a domain is properly configured, all requests to yourapp.bubbleapps.io will automatically be redirected to yourdomain.com. This applies to both the Live and Development anvironment.
Setting up a subdomain
If you already are using a domain and would like to use a subdomain to point to your Bubble app (for instance, app.yourapp.com). The steps are mostly identical to the above, with just a few changes:
Register the domain
When you purchase a domain name, you gain the rights to create subdomains within it, and you don't need to buy these subdomains separately.
Subdomains, like blog.example.com or shop.example.com, are part of the main domain (example.com) and can be set up directly through your domain registrar's website.
Change the DNS settings
After registering the subdomain in Bubble, we will provide you with DNS settings that you need to register with your registrar. Registering them is done in the same way as described earlier, but note that the DNS records will be different.
Changing/removing a domain
If you need to change your domain, you first need to remove the current domain. Clicking on 'delete this domain name' will terminate the connection between the application and the domain.
Note that your domain will still point to Bubble's server until you remove the DNS records in the registrar service. A Bubble page will be displayed with a message indicating there is no app linked to this domain. Once you have removed the domain, you can add a new domain as described above.
Will a domain change affect uploaded file URLs and dynamic URL expressions?
In short, no.
Uploaded files are stored on S3, rather than the domain directly. The URL remains the same evein if you set, change or disable a custom domain.
URL expressions automatically update to reflect your app's current domain. However, if you have hard-coded your app's domain somewhere, you will need to update it. We recommend using the
This URLorWebsite home URLdata sources instead of manually typing in a domain, to ensure it remains consistent.
SSL encryption (HTTPS)
TLS and SSL are encryption protocols that keep data secure while it's being sent between systems. All apps hosted on Bubble use TLS automatically, and this can't be turned off.
This means any data traveling between the user's device and Bubble's servers, along with related services, is encrypted in transit. Even if a third party were to intercept it, the contents can't be read.
FAQ: Domain and DNS
Other ways to learn
Last updated
Was this helpful?