Docs/Custom Domains

Custom Domains

Use your own domain for your app: add it, point its nameservers to Nexlayer, verify, and deploy.

Free

Your app gets a URL that Nexlayer creates, like your-app.cloud.nexlayer.ai. It can't be changed.

Pro

Unlimited custom domains. Here's how to connect one.

Connect your domain

  1. 1

    Add your domain

    In the dashboard, open Domains and click Add domain. Enter the domain you own, like myapp.com.

  2. 2

    Point your nameservers to Nexlayer

    Where you bought the domain, replace its nameservers with these two:

    ns1.nexlayer.ai
    ns2.nexlayer.ai
    At any registrar
    1. Sign in where you bought the domain.
    2. Open the domain's settings and find Nameservers.
    3. Choose to use your own, often called Custom or Custom DNS.
    4. Remove the nameservers that are there and add the two above.
    5. Save.

    Nexlayer then manages the domain's DNS, so note any records you have today (like email) before you switch.

  3. 3

    Verify

    Back in the dashboard, click Verify DNS. The domain shows Active once the change has gone through, which can take a while depending on where you bought it.

  4. 4

    Deploy to your domain

    Ask your agent: “Deploy my app to myapp.com.” Or add url to your nexlayer.yaml and deploy:

    application:
      name: my-app
      url: myapp.com   # your domain
      pods:
        - name: web
          image: my-app:latest
          path: /
          servicePorts: [3000]

    HTTPS is set up for you automatically.

Or let your agent do it

Your coding agent runs the same steps through the Nexlayer MCP or the CLI. Here's what it gets back. The one thing only you can do is change the nameservers where you bought the domain. Responses are shortened.

You: “Connect myapp.com to my app.”

$ nexlayer domains add myapp.comMCP: nexlayer_add_domain_to_profile
# Domain Added to Profile

Domain: myapp.com
Status: Domain successfully added to your Nexlayer profile!

## Next Steps
1. Add Nexlayer Name Servers to your domain at your domain registrar:
   - Name Server 1: ns1.nexlayer.ai
   - Name Server 2: ns2.nexlayer.ai
2. Wait for DNS propagation
3. Verify the configuration by calling nexlayer_verify_name_servers_configuration

Your agent asks you to set those two nameservers where you bought the domain, then waits for you.

You: “Done, I changed them.”

$ nexlayer domains verify myapp.comMCP: nexlayer_verify_name_servers_configuration
# Name Servers Verification

Domain: myapp.com
Status: Nameservers verified and domain marked as verified!

## Your domain is ready!
Add the domain to your nexlayer.yaml and deploy.

If it says Nexlayer nameservers not found, the change hasn't gone through yet. Your agent checks again a bit later.

You: “Deploy it to myapp.com.”

$ nexlayer shipMCP: nexlayer_deploy
→ deploying my-app
→ verifying my-app
## ✓ Working — my-app

https://myapp.com

Your agent adds url: myapp.com to nexlayer.yaml and ships. HTTPS is set up automatically.