Adding an SRV Record
Last Updated: March 2026
2 min read
Service (SRV) records are used for service discovery and defining locations. SRV helps define records and includes content such as ports, hostname, services, and more.
Example SRV Record
| Type | Service | Protocol | Weight | Port | Target | TTL | Priority |
|---|---|---|---|---|---|---|---|
| SRV | _sip | _tcp | 5 | 5060 | sipserver.example.com | 300 | 10 |
Note: To set up DNS records through your registrar, you need to be using their nameservers so they can manage and host your DNS.
Steps to Add an SRV Record
- Log in to your domain registrar account.
- Navigate to your domains list.
- Click on the domain name you wish to create an SRV record for.
- Click Manage DNS Records.
- Here you will add the desired SRV record, provided by your host:
- Select SRV in the Type drop-down menu.
- Enter the provided Service, Protocol, Weight, Port, Target, TTL, and Priority.
- Click the Add Record button.
SRV Record Fields Explained
- Service: The symbolic name of the service (e.g.,
_sip,_minecraft). - Protocol: The transport protocol (usually
_tcpor_udp). - Weight: A relative weight for records with the same priority. Higher values are given more preference.
- Port: The TCP or UDP port on which the service is found.
- Target: The hostname of the machine providing the service.
- Priority: The priority of the target host. Lower values indicate higher priority.
- TTL: Time to Live — how long the record is cached by resolvers (300 seconds is the default).
Once the records are created, the domain should be working within 24 hours.
Tags:
dns
srv record
service record
domains