Domain Binding
Domain is a unique identifier for your service, which can be used to access your service from the Internet. For example, the domain name of this website is zeabur.com
.
After your service is successfully deployed on Zeabur, you may need to bind a domain to expose this service to the Internet.
Step 1: Open Domains Tab
Select the service which you want to add a domain for, and expand the Domains tab, you will see two buttons for you to create a domain for your service.
Step 2: Create a Domain
Zeabur provides an easy service for generating domain names with the zeabur.app
suffix that can be used to access your services without additional configuration.
Just click on the Generate Domain button, and type in the name you want to use, if the domain name is available and haven't been used by others, you can click on the Save button to use it to access your service.
You can also choose to fully customize your domain name. But to access your service with your own domain name, you will need to follow instructions in Step 3 to do some configurations for it.
Step 3: Configure Your Customized Domain
For more uniqueness and flexibility, you may like to choose to bundle your own domain name.
If you don't own any domain yet, you can buy it from some domain name service providers, such as GoDaddy (opens in a new tab) or Cloudflare (opens in a new tab).
Click on the Custom Domain button, and type in your domain name, then click on the Save button.
After you have added your dedicated domain name to the service, you will find it is in the Invalid DNS
status. In order to access your service properly, you need to go to your domain registrar and manually configure DNS records for your domain name.
Configure DNS record
Here is an example of using Cloudflare to add DNS records for the domain name.
Open the Cloudflare console, select the domain name you want to configure, and select DNS records.
On this page, in the Manage DNS section, click the Add Record button.
Fill in the corresponding name and target content. Here, the name corresponds to the Name
field, and the target corresponds to the Target
field.
Configure subdomain DNS record
If you want to bind a domain name to a subdomain, for example, you purchased the domain name example.com
, but you want to bind the service to the subdomain blog.example.com
:
- Select
CNAME
record in theType
field - Enter your subdomain name in the
Name
field, for exampleblog
- Enter
cname.zeabur-dns.com.
in theTarget
field
Configure root domain DNS record
If you want to bind a domain name to a root domain (APEX Domain), for example, you purchased the domain name example.com
, and you want to bind the service to the root domain example.com
:
- Select
A
record in theType
field - Enter
@
in theName
field - Enter
35.71.144.225
or52.223.32.133
。 - You can also add two
A
records, each corresponding to one of these two IP addresses.
The two IP addresses mentioned above are Zeabur's Anycast IP. When you add the
A
record of these two IP addresses to DNS, users who visit your website will
be resolved to the nearest node to them, ensuring that visitors to your
website can open your page at the fastest speed.