Skip to main content
Display the cluster domain name that’s currently reserved in Uncloud DNS.

Usage

uc dns show

Examples

Show the cluster domain

uc dns show
Output:
abc123.uncld.dev

Use in scripts

DOMAIN=$(uc dns show)
echo "Cluster domain: $DOMAIN"

No Domain Reserved

If you don’t have a domain reserved:
uc dns show
Output:
Error: no domain reserved
Reserve one:
uc dns reserve

Service URLs

Once you know your domain, you can construct service URLs:
DOMAIN=$(uc dns show)
echo "Web service: https://web.$DOMAIN"
echo "API service: https://api.$DOMAIN"

Build docs developers (and LLMs) love