How to: Create DNS SRV Records

sshCreating SRV Records

Some services, such as Microsoft 365, will require SRV records to be created.

SRV records are constructed as follows:

_service._protocolName IN SRV priority weight portNO subdns.domain.com

The following parameters are needed to fully construct SRV records:

  • Service
  • Protocol
  • Port
  • Weight
  • Priority
  • Name
  • Target
  • TTL

A sample SRV record could look like this:

_https._tcp IN SRV 10 10 443 mail.domainname.com.

Microsoft 365 SRV records can look like this:

_sip._tls IN SRV 100 1 443 sipdir.online.lync.com.
_sipfederationtis._tcp IN SRV 100 1 5061 sipfed.online.lync.com.

Query SRC record with DIG with as such:

# dig srv _https._tcp.mail.domainname.com

;; ANSWER SECTION:

_https._tcp.domainname.com. 38400 IN SRV 10 10 443 mail.domainname.com

Setting up SRV records can be complicated. Simply contact the Helpdesk with the parameter list and our support staff will construct the SRV record on your behalf.

Was this helpful?
How to: Create DNS SRV Records written by UKC average rating 3/5 - 2 user ratings