domain

Manage Railway service domains via the Railway CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sidpalas/background-agent --skill domain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain
Source: https://github.com/sidpalas/background-agent/tree/main/.opencode/skill/domain
Command: npx skills add https://github.com/sidpalas/background-agent --skill domain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Railway environments require reliable domain management to expose services with correct routing and DNS, enabling accessible endpoints and smoother deployments.

Core Features & Use Cases

  • Add Railway-provided domains for a service (one domain per service)
  • Configure custom domains and retrieve necessary DNS records
  • Retrieve the public URL for a deployed service or verify domain status

Quick Start

Use the railway domain command to add a domain for your linked service.

Frequently Asked Questions about domain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a custom domain to a Railway service using the CLI?

To add a custom domain to a Railway service, use the railway domain command via the CLI on your linked service. The process includes deployment checks and retrieving the necessary DNS records to configure routing correctly.

Can I generate a Railway-provided domain for my service?

Yes, you can generate a Railway-provided domain for your service using the railway domain command. This allows one domain per service, enabling accessible endpoints and ensuring correct routing for your deployments.

How do I retrieve the public service URL for a deployed Railway application?

To retrieve the public service URL for a deployed Railway application, use the domain management commands to view existing domains. This verifies domain status and confirms the service is accessible at the configured endpoint.

What DNS configuration do I need for a Railway custom domain?

Configuring a Railway custom domain requires retrieving specific DNS records provided by the CLI after adding the domain. These records must be applied to your DNS provider to ensure correct routing to the Railway service.

Does Railway allow multiple custom domains for a single service?

Railway domain management currently supports adding one Railway-provided domain per service. Custom domains can be configured and removed individually using the CLI to manage accessible endpoints for your deployments.

Why is my Railway domain not working after deployment?

If a Railway domain is not working, verify the DNS configuration records were applied correctly and check the deployment status using the CLI. The domain management process requires proper service linking and successful deployment checks.