Introduction
Game servers typically run on non-standard ports, making them
incompatible with standard web DNS configurations. SRV records
solve this by allowing you to map a service name and protocol
to a specific hostname and port. With an is-pro.dev subdomain,
you can give your game server a clean, memorable address like
mc.is-pro.dev instead of asking players to
remember 203.0.113.5:25565. This guide covers
configuring SRV records for Minecraft, Valheim, and other
popular game servers.
Prerequisites
- A game server running and accessible on your network or VPS
- Your server's public IP address or dynamic DNS hostname
- An is-pro.dev subdomain registered at dash.is-pro.dev
- Knowledge of the port number your game server uses (e.g., 25565 for Minecraft)
Step 1: Understanding SRV Record Structure
An SRV record has a specific format:
_service._protocol.name TTL class SRV priority weight port
target. For Minecraft Java Edition, the service is
_minecraft and the protocol is _tcp.
The name is your subdomain. Priority determines which server
to try first (lower = higher priority). Weight distributes
load among servers with the same priority. Port is the
server's listening port. Target is the hostname (not IP) of
the server. A complete Minecraft SRV record looks like:
_minecraft._tcp.mc.is-pro.dev 300 IN SRV 0 5 25565
yourserver.example.com. The TTL can be set to 300-600 seconds for game servers
since IP changes are infrequent. Note that the target must be
a hostname, not an IP address — if your server only has an IP,
use a dynamic DNS service or create an A record pointing a
hostname to the IP, then use that hostname as the SRV target.
Step 2: Configure SRV Records in is-pro.dev Dashboard
In the is-pro.dev DNS dashboard, click "Add Record" and select
SRV as the record type. The dashboard will show fields for
Service, Protocol, Priority, Weight, Port, and Target. For a
Minecraft Java Edition server: set Service to
minecraft, Protocol to TCP, Priority
to 0, Weight to 5, Port to
25565, and Target to your server's hostname
(e.g., yourserver.example.com). The system
constructs the full SRV record name automatically. Set the
record to DNS-only (gray cloud) — game server traffic uses
non-HTTP protocols on non-standard ports and cannot be proxied
through Cloudflare. Save the record and verify it appears in
your record list.
Step 3: Minecraft Java Edition Configuration
Minecraft Java Edition automatically checks for SRV records
when a player connects. If a player types
mc.is-pro.dev into the multiplayer server address
field, Minecraft looks up
_minecraft._tcp.mc.is-pro.dev and redirects to
your server IP and port. The server.properties file on your
Minecraft server must set server-ip= to blank (to
listen on all interfaces) and server-port=25565.
If you change the port from 25565, update the SRV record port
accordingly. For Minecraft Bedrock Edition, the SRV service is
_minecraft but the protocol is
_udp and the default port is 19132. Test the SRV
resolution using an online Minecraft server status checker
that supports SRV lookup.
Step 4: Valheim and Other Game Server Configuration
Valheim servers use different SRV record values. Service:
_valheim, Protocol: _udp, Port: 2456
(default). Some games use multiple ports — Valheim uses
2456-2458. Configure your server to listen on these ports and
add SRV records for the primary connection port. For other
games, check the game's documentation for the correct service
name, protocol (TCP vs UDP), and default port. Games that
support SRV records include: Counter-Strike (source), Team
Fortress 2, Quake, and many others. Not all games support SRV
lookups — for unsupported games, you can only use an A/AAAA
record pointing to your server IP and direct players to use
yourname.is-pro.dev:port format.
Step 5: Dynamic DNS for Residential Servers
If you host a game server on your home network with a dynamic
IP address, your SRV record's target hostname needs to update
when your IP changes. Set up a dynamic DNS service: use Duck
DNS (yourserver.duckdns.org) or Cloudflare's API
to update an A record automatically when your IP changes. Your
SRV record then points to the dynamic DNS hostname, and the
dynamic DNS client keeps the A record updated. On the
is-pro.dev side, you only configure the SRV record once — it
always points to your dynamic DNS hostname. Set up a cron job
or use a Docker container that runs a dynamic DNS update
script every 5 minutes.
Step 6: Test SRV Resolution
Use command-line tools to verify SRV records are configured
correctly. Run
nslookup -type=srv _minecraft._tcp.mc.is-pro.dev
or dig _minecraft._tcp.mc.is-pro.dev SRV. The
response should show your server's target hostname and port.
Test actual game connectivity by launching the game and
connecting using your subdomain. Check server logs to confirm
connections are arriving. If players cannot connect, verify
the SRV record format, ensure your server firewall allows the
game port, and confirm port forwarding is configured on your
router if hosting from home. Use online SRV lookup tools to
double-check your DNS configuration from external networks.
Best Practices
- Set up monitoring for your game server using the is-pro.dev uptime monitoring tools to detect crashes
- Use multiple SRV records with different priorities for redundant game servers
- Keep your server software updated to patch security vulnerabilities
- Configure a firewall to allow only the necessary game ports and block everything else
Conclusion
SRV records transform a complex game server address into a simple, memorable subdomain. With an is-pro.dev subdomain, you configure the SRV record once and players connect using an easy-to-remember address. This setup works for Minecraft, Valheim, and many other games, making your server more accessible to players.
FAQ
Do all games support SRV records?
No. SRV record support depends on the game client. Minecraft Java Edition supports them natively. Many older games and console games do not. Check your game's documentation for SRV support.
Can I use an SRV record with Cloudflare proxied mode?
No, SRV records must always be DNS-only (gray cloud). Cloudflare's proxy only handles HTTP/HTTPS and WebSocket traffic, which game server protocols are not.
What if my server IP changes?
Use a dynamic DNS hostname as the SRV target. You only need to update the A record of the dynamic DNS hostname when your IP changes, not the SRV record itself.
FAQ
Is Gaming setup free on is-pro.dev?
Yes, all subdomains on is-pro.dev include free DNS management and SSL certificates.
How long does DNS take to propagate?
Cloudflare typically propagates DNS changes within seconds to a few minutes globally.
Can I use this for commercial projects?
Yes, is-pro.dev subdomains can be used for personal and commercial projects within our fair use policy.