Skip to main content

Domain Name Configuration

🕓 10 minutes

What you’ll learn​

How to assign your own DNS for the application in order to simplify the access to this application for the end user.

Prerequisites​

Overview​

By default, CodeNOW assigns a domain name that consists of the application name plus the name of the environment. If you would like to change this name, you need to register a new domain, add it to CodeNOW and then assign it to the chosen application.

note

A CNAME (Canonical NAME) record maps a specific domain, such as "example.com" or "www.example.com", to a canonical domain name. In this case, the canonical domain name is the [myapp].codenow.com domain name of your CodeNow application. Once created, the CNAME creates an alias for the [myapp].codenow.com. The CNAME entry will resolve to the IP address of your [myapp].codenow.com service automatically, so if the IP address of the cloud service changes, you do not have to take any action.

  • You can find more information about CNAME here

Register a new domain​

To register a new domain name, you can check this tutorial.

Create a new domain​

  1. Find the Domains option in the Infrastructure & Security section of the left menu bar.
    • There you can see an overview of all the domains.
  2. To add a new domain, click on the Create Domain.
  3. Now, you need to specify a name for your new domain as well as a public certificate and a private key.
  4. Once you are done, click Confirm.

Assign domains​

  1. To assign a domain to the application, go to the application details and find the Assigned Domains section. Now click on Assign Domain.
  2. In the form select a domain and environment. After you are done, click Confirm.
    • Additionaly you can specify a domain suffix for your application.
  3. Once they are assigned, domains can be changed or unassigned using Edit and Unassign buttons.

Domains during deployment​

When deploying an application, you can see the assigned domain configuration or edit the configuration by clicking on the related buttons in the Assigned Domain section.

  • If you did everything right, you can see your domain name, after you open your deployed application in the browser window.

Assigned Domains during Deployment