[SRV Record] How to Use a Custom Domain with Your Server on GoDaddy

Started by beys6q8yn, Oct 24, 2024, 04:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


ridrefastu

To use a custom domain from GoDaddy with your server using an SRV record, follow this step-by-step guide:

✅ What is an SRV Record?
An SRV (Service) record tells the domain's DNS which host and port to use for a specific service (like Minecraft, SIP, or custom apps).

🔧 Example Use Case:
You have a Minecraft server running at myserver.example.com:25566, but you want players to just connect using play.example.com — you'd use an SRV record to handle this.

📝 Step-by-Step: Add an SRV Record on GoDaddy
Step 1: Create a Subdomain (A Record)
Log in to your GoDaddy DNS Management.

Go to the domain you want to use.

Click "DNS" > scroll to Records.

Click Add:

Type: A

Name: (e.g., mc or server)

Value: Your server's IP address (e.g., 123.45.67.89)

TTL: Default is fine

Click Save.

Now you have something like mc.example.com → 123.45.67.89.

Step 2: Add an SRV Record
Click Add again:

Type: SRV

Service: e.g., _minecraft

Protocol: _tcp

Name: Subdomain you want (e.g., play)

Priority: 0

Weight: 5

Port: e.g., 25566 (your server's port)

Target: The A record from step 1 (e.g., mc.example.com)

TTL: Default is fine

Click Save.

✅ Result
Now, play.example.com will point to your server at mc.example.com:25566 — users won't need to type the port.

🛠� Example SRV Record:
Field   Value
Service   _minecraft
Protocol   _tcp
Name   play
Priority   0
Weight   5
Port   25566
Target   mc.example.com

Didn't find what you were looking for? Search Below