SRV records for Microsoft 365, Teams, and other services
An SRV record names the server and port for a specific service. Most small-business setups need only a handful. They are common with Microsoft 365 and calendar sync.
Fields
An SRV record has a name made of three parts, plus four values.
_service._protocol.name. TTL IN SRV priority weight port target.
| Field | Meaning | Example |
|---|---|---|
| Service | The service | _sip |
| Protocol | _tcp, _udp, or _tls |
_tls |
| Name | Your domain | example.ca. |
| Priority | Lowest is tried first | 100 |
| Weight | Share of traffic between equal priorities | 1 |
| Port | The service port | 443 |
| Target | The server hostname | sipdir.online.lync.com. |
Microsoft 365
Microsoft 365 email works with MX, TXT, and a CNAME for Autodiscover. Teams no longer needs SRV records, and Skype for Business Online has been retired. Add these only if the Microsoft 365 admin centre lists them for your tenant. They look like this.
| Type | Name | Priority | Weight | Port | Target |
|---|---|---|---|---|---|
| SRV | _sip._tls |
100 | 1 | 443 | sipdir.online.lync.com |
| SRV | _sipfederationtls._tcp |
100 | 1 | 5061 | sipfed.online.lync.com |
For the full set, see DNS records for Microsoft 365.
Calendar and contacts
Apple and some other apps look up _caldavs._tcp and _carddavs._tcp to find your calendar and contacts server. We create these records for you when a domain uses Barbrick's nameservers, so you only add them yourself if your DNS is elsewhere.
| Type | Name | Priority | Weight | Port | Target |
|---|---|---|---|---|---|
| SRV | _caldavs._tcp |
0 | 0 | 2080 | example.ca |
| SRV | _carddavs._tcp |
0 | 0 | 2080 | example.ca |
| SRV | _caldav._tcp |
0 | 0 | 2079 | example.ca |
| SRV | _carddav._tcp |
0 | 0 | 2079 | example.ca |
Port 2080 is the secure (SSL) connection. Each SRV record also has a matching TXT record on the same name with the value path=/. See Calendars and contacts.
Add an SRV record in your Barbrick account
- Open Account → Hosting → your site → DNS and choose your domain.
- In Add a record, below the table, set Type to SRV.
- For Name, enter the name, such as
_sip._tls. - Enter the numbers under Priority and weight, and the port and server under Port and target.
- Click Add record.
If SRV is missing from the list of types, open a request and we will add the record for you, usually the same day.
Check it
dig +short SRV _sip._tls.example.ca
100 1 443 sipdir.online.lync.com.
Notes
- The target must be a hostname with an A record. It cannot be an IP or a CNAME.
- Most websites and email do not need SRV records. Add them only when a service tells you to.
Still stuck? Ask us and we'll walk you through it.
