This guide will show you how to setup an SRV Record for a domain so you can allow your server to be connected to via a domain without entering port.
How to setup a Domain Name with a SRV Record to your TeamSpeak server
You will need to own a domain name and webhosting service to use a custom domain name on your TS server.
This can be with Citadel Servers or a host that allows editing of DNS Records with SRV Record support.
In this scenario, we will be reviewing how to setup the record in our own Cpanel Web Hosting panel.
This will use the IP and port for the Teamspeak 3 server you have with us.
Setting up the Sub Domain
If you already have a sub-domain, you can skip this part.
You will first want to create the subdomain you wish to use to connect with.
In this example, we are using ts as our subdomain. E.g. ts.YourDomainName.com
Access the Cpanel Web hosting panel.
Click on "Subdomains"
Once there, select the domain you want to use, then enter the subdomain name of ts into the subdomain field.
Save this and exit back to the main panel.
Sub Domain is now created!
Setting your Sub Domain to point to your Voice Service
Now you will need to modify the 'A' records for the subdomain to point to the IP address of your TeamSpeak server.
Access the Zone Editor inside Cpanel. Click the Zone Editor option.
Click on the "Manage" button to manage the DNS records of your domain.
Scroll down the list of DNS records until you come across the 'A' record for the subdomain you just created.
In this example, we are looking for ts.YourDomainName.com.
Once you have found the record click the "edit" option on it
Replace the IP address with the Server IP address of your TeamSpeak server and then press the "save" button.
Do NOT include your TeamSpeak Server port in with the IP Address.
So if your TeamSpeak's connection info is 192.168.0.1:10050, you would only write 192.168.0.1
The 'A' record is now complete for the subdomain.
The next step is to create a new 'SRV' record in the Zone Editor.
Inside the Zone Editor page click the 'Add Record option', this is found at the top of the page.
For the Name option, you will need to write _ts3._udp. followed by your subdomain
So in our example, we would write it out as _ts3._udp.ts.
It should auto-add your domain to the end after you finish typing in the field and display it as
_ts3._udp.ts.YourDomainName.com.
For the TTL option, leave it on the default value of 14400
Set the Type option to SRV
Set the Priority to 0
Set the Weight to 5
Set the Port to your TeamSpeak server's port. If your TS servers connection info is 192.168.0.1:10050, you would set the port to 10050
Set the Target to your subdomain. In this example, it would be ts.exampledomain.com
Click the Save Record Option.
All set, record should now function correctly.
It may take up to 24 hours for a DNS server to fully propagate changes so this may not be immediately available.