Note: This documentation is for version 1 of the Now platform. For the latest features, please see the version 2 documentation. If you have yet to upgrade, see the upgrade guide.

Assign a Domain Name

When you deploy an app with Now, you will have a unique deployment URL like this:

If you deploy your app multiple times, you will have multiple URLs. With these different deployment URLs, you can easily point users to a specific version of your app.

However, you cannot ask your users to visit those addresses. This is because the addresses are not easy to remember and they change every time you deploy a new version.

Hence, you need a fixed domain name.

Our sample static app with a fixed domain name.

In this guide, we are going to map a domain name into one of those deployment URLs of your app by using the now alias command.

The four different ways to use the now alias command are:

  1. Using a domain
  2. Using a custom domain, managed by now
  3. Using a custom domain, DNS managed by now
  4. Using a custom domain with a CNAME

Let us explore each method in detail.

This method is the easiest way to use a domain name. To obtain a domain name with the postfix instantly, simply run the following command:

now alias my-web-app

Your users may now access the above deployment URL using

If you want to use a custom domain for your app, the easiest method is to buy a domain name for your app using Now.

Simply run the following now alias command:

now alias

Here, we are attempting to assign the domain name to the above deployment URL. If the domain name is available, you may confirm and buy it without leaving the terminal.

After the confirmation, Now will handle all the technical details for you and allow your users to access your app using

Confirmation you'll get after assigning a custom domain.

In this process, Now will set up a Let's Encrypt SSL certificate for your domain automatically.

If you already have a domain name, this is the best option for you. With this method, Now will handle all the DNS management for your domain.

First of all, you need to point your domain's nameservers to our global DNS service. Here is how to do that:

  • Visit your domain name provider and find a place where you can add custom nameservers.
  • Select two or more nameservers from this list.
  • Set them as custom nameservers for your domain.

For example, assume that your domain name is

After you have set up the nameservers, simply run the following now alias command:

now alias

Then, you can access your app using

You can also use a subdomain of like this:

now alias

Even in this process, Now will set up a Let's Encrypt SSL certificate for your domain automatically.

If you are managing a DNS setup for your domain, you can use this option.

For example, assume you have a domain name called and you already have a DNS setup for that.

To map the domain for one of the deployment URLs of your app, visit your DNS provider and add a CNAME record for pointing to

After that, run the following command:

now alias

You will then have an error like this:

The error message you'll get when trying to alias a domain for the first time.

‚ÄčNow wants to verify the ownership of your domain. That's why it throws an error.

  • Next, add the TXT record as mentioned above error message.
  • Run the now alias command again:
now alias

Now you may access your app using

In this case, Now will setup a Let's Encrypt SSL certificate for your domain. However, before you do that, you need to verify the domain.

You can also use a naked domain like with this method. In that case, you need to use an ALIAS record instead of a CNAME record.

Some DNS providers do not have ALIAS records. In that case, the functionality of ALIAS records is managed using CNAME records.