# Add an SRV record
Source: https://docs.webgee.com/en/domains-dns/what-is-an-srv-record-and-how-to-add-an-srv-record-for-a-domain-in-cpanel



Add an `SRV` record to your domain's DNS. Applies to shared and reseller hosting.

An `SRV` record advertises **which host and port** run a particular service, so
clients can find it without being told. Common uses are VoIP and SIP, XMPP chat,
Minecraft servers, and Microsoft 365 autodiscover.

## The parts of an SRV record [#the-parts-of-an-srv-record]

| Field    | Meaning                                | Example           |
| -------- | -------------------------------------- | ----------------- |
| Service  | The service, with a leading underscore | `_sip`            |
| Protocol | `_tcp` or `_udp`                       | `_tcp`            |
| Name     | The domain it applies to               | `example.com`     |
| Priority | Lower is preferred                     | `10`              |
| Weight   | Relative share among equal priorities  | `5`               |
| Port     | The port the service listens on        | `5060`            |
| Target   | The hostname providing it              | `sip.example.com` |

## Add one [#add-one]

1. In cPanel, open **Zone Editor** under **Domains**.
2. Select **Manage** beside your domain.
3. Select **Add Record**, then choose **SRV**.
4. Fill in the fields with the values your service provider gave you.
5. Save.

<Callout type="warn">
  Enter the values **exactly** as your provider specifies, including the leading
  underscores on service and protocol. `_sip` and `sip` are different records,
  and a missing underscore means the record silently never matches.
</Callout>

Some interfaces combine service and protocol into the name field as
`_sip._tcp.example.com`. If cPanel gives you separate boxes, split the value
your provider supplied.

## Target must be a hostname [#target-must-be-a-hostname]

The target is a **hostname**, never an IP address. If your provider gave you an
IP, create an `A` record pointing a hostname at it first, then use that hostname
as the target.

## Check it worked [#check-it-worked]

```bash
dig +short SRV _sip._tcp.example.com
```

It returns priority, weight, port and target. An empty response means the record
is not resolving — check the underscores and allow for propagation.

## Related [#related]

* [Check which nameservers a domain uses](/en/domains-dns/how-do-i-check-what-nameservers-my-domain-is-using)
* [Reset a DNS zone to its defaults](/en/domains-dns/how-do-i-reset-the-dns-zone-to-the-default-for-a-domain)
