# What Is an SRV Record and How It Works

#### WHAT IS THE SRV RECORD?

SRV corresponds to the abbreviation for SeRVer to help you find the availability of a particular service with a certain protocol for a domain. You can give more servers, define preferences, and specify which port the service is running.

<p class="callout info">It is similar to the record of the SRV record for the long-established MX record, in fact its generalization: it is possible to specify SRV records not only for correspondence but also for any service, which can be prioritized and weighted by parameters, and finally, what kind of protocol and port we provide given service.</p>

A domain name may have more SRV records.

#### EXAMPLE OF THE SRV RECORD

Two typical SRV records can be seen below:

```
_sip._tcp.example.com.   3600 IN    SRV 10       60     5060 bigbox.example.com.
_sip._udp.example.com.   3600 IN    SRV 10       20     5060 smallbox1.example.com.
```

#### SRV RECORD FORMAT

Prioritycontains the priority value

<table id="bkmrk-fields-name-descript"><tbody><tr><td>**Fields name**</td><td>**Description**</td></tr><tr><td>Name</td><td>In general, the symbolic name of the service (`_sip`) is provided, and the service is protocols (`_tcp` or `_udp`). This is followed by the domain or subdomain name.</td></tr><tr><td>TTL</td><td>this field contains record lifetime in seconds. This is the time until the entry is stored in the resolver.</td></tr><tr><td>Weight</td><td>contains the weight value</td></tr><tr><td>Port</td><td>contains the port on which the given service is available</td></tr><tr><td>SRV target</td><td>contains the target address</td></tr></tbody></table>

#### ADDING SRV RECORD

1. Sign in with [https://admin.dotroll.com](https://admin.dotroll.com/?swcfpc=1) with your username and password
2. In the top menu bar, click the **Domains** / **My Domains** menu.
3. Select the domain name for which you want to make the change and then click on it.
4. In the **Manage** box on the left, select **Manage DNS**.
5. At the bottom of the page, click **Add**. 
    - In the first field, you can enter a subdomain name, or leave blank
    - the TTL value can be selected in the second field, but typically the default is 1 hour
    - select **SRV** from the next drop-down list.
    - enter the priority
    - enter the weight
    - enter the port
    - enter the name of the service provider in the last field
6. Then click **Save Changes**.