How to connect a custom domain to a Node.js application

Connect your own domain name to your Node.js application deployed on Hostinger

Updated 5 days ago

If you deployed your Node.js application using a temporary domain, you can connect your own custom domain at any time. Connecting a custom domain makes your application accessible through a domain name you own.

You can start the domain connection process from two locations in hPanel:

  • Websites list

  • Website Dashboard of the Node.js application

Option 1 — Connect a domain from the Websites list

  1. Log in to hPanel.

  2. Open the Websites list.

  3. Locate your Node.js application using a temporary domain.

  4. Click Connect domain next to the website.

You will be redirected to the domain connection flow.

Option 2 — Connect a domain from the Website Dashboard

  1. Open the Website Dashboard for your Node.js application.

  2. Click Connect domain.

This will open the domain connection page.

How to connect your custom domain

Once you start the domain connection flow:

  1. Enter the custom domain you want to use (for example, domain.com ).

  2. Confirm the domain selection.

  3. Follow any on-screen instructions if DNS changes are required.

Domain connection and SSL

Domain connection may take up to 24 hours, depending on DNS propagation. Once the process is completed:

  • Your Node.js application will be accessible via the custom domain
  • SSL certificates will be installed automatically

NOTES:

  • You can change or replace the connected domain later if needed.
  • During DNS propagation, your application may still be accessible via the temporary domain.
  • If your domain is registered outside Hostinger, make sure the required DNS records are added correctly.