# Adding an SRV record to a domain

> Add an SRV record to your domain's DNS for services such as VoIP or Microsoft 365, and understand each field.

Source: https://helpcenter.ruachost.com/domains/dns/adding-an-srv-record-to-a-domain/

**SRV (Service) records** are special DNS entries that define how a domain handles specific services. They are often required when configuring applications such as **SIP (VoIP)**, **Microsoft Office 365**, or other third-party services that rely on service discovery.

## What is an SRV Record?

An SRV record specifies:

- **Service** – the symbolic name of the service (e.g., _sip).
- **Protocol** – the transport protocol (e.g., _tcp or _udp).
- **Priority** – which server to contact first if multiple are available.
- **Weight** – load balancing between servers of the same priority.
- **Port** – the port number the service uses.
- **Target** – the hostname of the server providing the service.

Example format: _service.protocol.domain.com

## Adding an SRV Record in Ruachost (cPanel Accounts)

If your Ruachost hosting plan includes **cPanel**, you can add SRV records using the **Zone Editor**:

1. Log in to your **cPanel** account.
2. In the **Domains** section, click **Zone Editor**.
3. Locate the domain you want to update and click **Manage**.
4. Click **Add Record** and select **SRV** from the record type list.
5. Fill in the fields:

   - **Name**: _service._protocol.domain.com (e.g., _sip._tcp.example.com)
   - **TTL**: Leave default or set a custom value.
   - **Priority**: Enter the priority (lower numbers = higher priority).
   - **Weight**: Enter the weight (used for load balancing).
   - **Port**: Enter the port number used by the service.
   - **Target**: Enter the hostname of the server providing the service.
6. Click **Add Record** to save.

## Adding an SRV Record in Ruachost (VPS via WHM)

If you use **WebHost Manager (WHM)**:

1. Log in to **WHM**.
2. Go to **DNS Functions → Edit DNS Zone**.
3. Select the domain you want to update and click **Edit**.
4. Scroll to **Add New Entries Below this Line**.
5. Enter the SRV record details:

   - **Service/Protocol**: e.g., _sip._tcp
   - **Priority**: e.g., 0
   - **Weight**: e.g., 0
   - **Port**: e.g., 5060
   - **Target Hostname**: e.g., sip.example.com
6. Click **Save**.
