VestaCP/HestiaCP Office 365 SRV DNS records

You might be wondering, how to enter SRV values into your fresh VestaCP/HestiaCP install. Bellow is an example for Office 365 settings:

TypeTargetProtocolServicePriorityWeightPort
SRVsipdir.online.lync.com_tls_sip1001443
SRVsipfed.online.lync.com_tcp_sipfederationtls10015061

You might be tempted to put weight and port into IP/Value field (as this is what is suggested on Microsoft’s tutorial page), but that’s not how it works in VestaCP/HestiaCP. Instead, put them together with the priority as shown bellow.

Records in VestaCP/HestiaCP control panel

Domain: example.com
Record: _sip._tls
Type:  SRV
IP or Value: sipdir.online.lync.com.
Priority (optional): 100 1 443
Domain: example.com
Record: _sipfederationtls._tcp
Type:  SRV
IP or Value: sipfed.online.lync.com.
Priority (optional): 100 1 5061

That’s it for the SRV values, of course, don’t forget your A, CNAME and TXT!