LogoLogo
  • Getting Started
  • CLI
    • Docker
    • Config.yaml
  • GUI (SOON)
  • Tunnels Types
    • HTTP/s
      • HTTP/s plugins
      • HTTP/s apps
    • TLS
    • TCP
    • UDP
  • Reservations
    • Domain
    • Endpoint
  • Troubleshoot
    • Common errors
  • Tutorials
    • Expose a local web server
    • Expose Apache/Nginx web server
    • Share files from localhost
    • Use LocalXpose with Traefik
    • Expose PocketBase backend
    • Create a custom domain name
    • Make Let's Encrypt certificate
    • Access your IP camera remotely
    • Access your Raspberry Pi remotely
    • Sync your Keepass password manager
    • Expose localhost RASA chatbot for Telegram Integration
    • Expose your local Netdata Instance
    • Testing Stripe webhook
    • Expose localhost Kubernetes
    • Expose database server (PostgreSQL)
    • Exposing local Minecraft server
    • More Tutorials
Powered by GitBook
On this page
  • 1. Buy a domain name
  • 2. Reserve it on localxpose
  • 3. Add cname record
  • 4. Verify cname record
  • 5. Start a tunnel

Was this helpful?

  1. Tutorials

Create a custom domain name

This tutorial will explain how to create a custom domain name that will be used in HTTP/TLS tunnels.

PreviousExpose PocketBase backendNextMake Let's Encrypt certificate

Last updated 2 years ago

Was this helpful?

1. Buy a domain name

First of all you should bought a domain name from domain registrars like (GoDaddy, DNSimple, Namecheap...etc), in this example Namecheap will be used to manage our domain name.

We already have a domain name xtestgo.xyz from namecheap which will be used in this tutorial.

2. Reserve it on localxpose

After you bought a domain name you can now reserve it on localxpose as follows:

Using CLI:

3. Add cname record

From Namecheap dashboard --> Domain List --> click on "Manage" button

Go to advanced DNS

Click "ADD NEW RECORD"

From dropdown menu click on "CNAME Record"

Finally enter the host and value which you reserved from step 2, in our case the host is www.xtestgo.xyz and the value is 8kplouxq3znu.cname.loclx.io and then click "Save Changes"

4. Verify cname record

You can verify the cname record if it is added correctly from localxpose

loclx domain status --domain www.xtestgo.xyz

5. Start a tunnel

Finally you can use the reserved custom domain name in your tunnel

loclx tunnel http --reserved-domain www.xtestgo.xyz

Go to that custom domain name

Reserve a domain name using CLI
Advanced DNS
ADD NEW RECORD
CNAME Record
Enter host and value
www.xtestgo.xyz