DNS Management
Shardlyn integrates with Cloudflare to manage DNS records for your instances and applications. Assign custom domains to workloads directly from the dashboard.
Prerequisites
Before using DNS management, you need:
- A domain managed by Cloudflare
- A Cloudflare API token with DNS edit permissions
- The API token added to Shardlyn in Settings > Credentials
Creating a Cloudflare API Token
- Go to Cloudflare Dashboard > API Tokens
- Click Create Token
- Use the Edit zone DNS template (or create a custom token with
Zone.DNSpermissions) - Scope the token to the zones you want to manage
- Copy the token and add it to Settings > Credentials in Shardlyn
Managing DNS Records
Creating a Record
- Navigate to Settings > DNS
- Click Add Record
- Select the credential and DNS zone
- Configure the record:
- Type: A, AAAA, CNAME, SRV, etc.
- Name: Subdomain (e.g.,
mcformc.yourdomain.com) - Content: IP address or target
- TTL: Time to live (optional, defaults to auto)
- Optionally link the record to a node for automatic IP updates
- Click Create
Updating a Record
- Navigate to Settings > DNS
- Click on the record to edit
- Modify the fields
- Click Save
Deleting a Record
- Navigate to Settings > DNS
- Click Delete on the record
- Confirm the deletion
Automatic DNS
Shardlyn can automatically create DNS records when you provision new nodes or deploy instances.
Configuring Auto-DNS
- Navigate to Settings > DNS
- Click Auto-DNS Configuration
- Select the Cloudflare credential and zone
- Set a subdomain template (e.g.,
{node-name}.serverscreatesnode-1.servers.yourdomain.com) - Enable auto-DNS
When auto-DNS is enabled, Shardlyn automatically:
- Creates an A record when a node is provisioned
- Updates the record if the node's IP changes
- Removes the record when the node is deleted
Linking Records to Nodes
You can link a DNS record to a specific node. When linked:
- The record's content (IP address) stays in sync with the node
- If the node's IP changes, the DNS record updates automatically
To link a record:
- Create or edit a DNS record
- Select a node from the Node dropdown
- Save the record
Common Setups
Game Server or App with Custom Domain
mc.yourdomain.com → A → 203.0.113.10 (node IP)Players connect to mc.yourdomain.com:25565 instead of a raw IP address.
SRV Record for Minecraft
Minecraft clients can connect without specifying a port using an SRV record:
_minecraft._tcp.yourdomain.com → SRV → 0 5 25565 mc.yourdomain.comPlayers connect to just yourdomain.com.
Wildcard for Multiple Servers
*.servers.yourdomain.com → A → 203.0.113.10All subdomains under servers.yourdomain.com resolve to your node.
Next Steps
- Cloud Provisioning — Provision nodes with automatic DNS record creation
- Connecting Nodes — Register existing servers and link DNS records
- Security — Manage Cloudflare API tokens and credentials