Mike MurphyAI Handyman
Subscribe
Back to tutorials

How to Connect Custom Domains to Hostinger VPS and Create Subdomains for n8n

December 10, 2025 ·

In this tutorial, you will learn how to add custom domains that you already own and add to your Hostinger VPS and then create unlimited subdomains to create custom URLs to open n8n and other apps and services on your VPS.

Description

In this tutorial, you will learn how to add custom domains that you already own and add to your Hostinger VPS and then create unlimited subdomains to create custom URLs to open n8n and other apps and services on your VPS.

What You Will Learn:

  • How To Add Domains to DNS Manager
  • How To Change NameServers on Domain Registrar
  • How To Update DNS Settings
  • How To Create Subdomains (A-Records)
  • How To Edit docker-compose.yml files
  • How To Deploy Docker Stacks
  • How To Check Open Ports on Firewall
  • How To Test Custom Domains.

**
Hostinger VPS (affiliate link):**
https://www.hostg.xyz/SHIDN
Use coupon code DISCOUNT7 for an additional 7% off

Resources Mentioned:

How To Setup Hostinger VPS (Complete Guide)
https://youtu.be/UdM7Va4JXTI

Additional Tutorials:
How to Update n8n on Hostinger VPS (Full Guide):
https://youtu.be/9-u3BGl0ubU

How to Add SSH Keys (Beginner Tutorial):
https://youtu.be/6–d2faQSFY

How to Secure Hostinger VPS with Firewall Rules:
https://www.youtube.com/watch?v=bjMGvwHKXyY

——————
✅ Chapters:
00:00 Intro: About The Tutorial
00:14 Launching n8n (VPS Dashboard)
01:03 Manage App Button
01:21 Domains + SubDomains 101
02:23 Custom Domains FAQ
02:54 Google Chrome Warning (n8n subdomain)
04:02 8 Steps To Add Custom Domains
05:30 Step 1: Add Custom Domain
06:16 Step 2: Change Nameservers (GoDaddy)
07:26 Sign In To Domain Registrar (GoDaddy)
08:52 Step 3: Edit DNS (Custom Domain)
10:04 Step 4: Create SubDomain
10:25 Copy IP Address (Overview)
10:51 Add New A-Record (SubDomain)
11:48 Side Tip: DNS Records (@)
13:37 Step 5: Set Environment Variables
14:12 Docker Manager (Edit YAML)
15:12 YAML Editor + Environment Box
16:12 SSL Certificate (Let’s Encrypt)
17:58 Comment Out Ports
20:25 Nerd Tip: Ports
22:30 Step 6: Deploy n8n Docker Stack
23:56 Deploy Docker Stack
25:02 Step 7: Firewall Rules (80,443)
26:13 Step 8: Test URL in Browser
26:46 Check SSL Certificate
27:48 Create Additional Subdomains
28:43 Ask Kodee

🪜What You Will Learn:

  1. How To Add Domains to DNS Manager
  2. How To Change NameServers on Domain Registrar
  3. How To Update DNS Settings
  4. How To Create Subdomains (A-Records)
  5. How To Edit docker-compose.yml files
  6. How To Deploy Docker Stacks
  7. How To Check Open Ports on Firewall
  8. How To Test Custom Domains.

AI Unplugged · weekly

Newsletter for AI Builders

One practical email with the news, tools, terms, and tutorials worth remembering. Beehiiv sends it; Astro owns the archive.

No spam. Reply-friendly. Easy to leave.