Skip to content

How to Add the SRV Records for Office 365 to a DNS Provider

The documentation provided with Office 365 combined with the new interface make configuration of it much simpler than with BPOS. However, it isn’t without a few small bumps. I ran into one of these when I was setting up our own organization to use the Lync features. One of the requirements was to add two SRV records to our external DNS, as per the image below:

image

There are actually some great guidelines and walkthroughs for setting this up with specific registrars, such as GoDaddy. However we’re using DynDNS, which is not one of the ones documented. Fair enough, I can find my way around a configuration screen, but the problem was that our DNS provider is somewhat old school. The SRV records are considered advanced (and therefore assume that I know what I’m doing with DNS), so instead of giving me nice, clearly defined fields like TTL, Port, and weight, I am presented with a single TXT field entry screen.

image

This is fine if you’re a DNS expert, and know how to construct the strings, but I’m not. After a fair bit of hunting around, I was able to sort out the following syntax for adding the requisite SRV records:

Host TTL Type Data
_sip._tls.mydomain.com 60 SRV 1 100 443 sipdir.online.lync.com.
_sipfederationtls._tcp.mydomain.com 60 SRV 1 100 5061 sipfed.online.lync.com.

 

Take special note of the period at the end of the data field – this is in fact required. Once these values were added, we were off to the races with Lync – which is awesome by the way…

Your mileage may vary depending on your DNS provider, but hopefully it will help if you’re in a similar situation.

26 Comments

  1. CB CB

    Excellent, used this info to send to our ISP to get Office365 Lync working..

  2. Terrific article info and Mark thanks for the Media Temple info.

  3. Andy Andy

    holy jesus christ ! i’m looking for 2 weeks for that informations ! you are such a great guy ! THANK YOU !!!

    DNS tools are so lame and theres no logic ! to put everything together in one field….makes no sense, but now, it does ! thank you.

    now, my DNS is working fine

  4. Brad Brad

    Good god thank you – I even use a DNS provider that allows me to add SRV records exactly as Office365 prescribes. However, it was your point about taking special note of the period at the end of the data field – when I added that to my target, it finally worked. Microsoft does not indicate that you need to add a period at all – but I tried it just based on your recommendation and it worked. Thanks so much!

  5. Thanks!! This is exactly what I needed to get this working. You are a God send!

  6. Anonymous Anonymous

    Thank you very much!! This is exactly what I was looking for.

  7. Anonymous Anonymous

    Great post!! Thanks!

  8. Anonymous Anonymous

    In CPANEL it is not possible to add SRV !!

  9. Anonymous Anonymous

    Unbelievable!! Thank you. I don’t care if “weight” and “priority” might be backwards. 365 accepted it. Change later if need be.

  10. Ian B Ian B

    Excellent. I was Scratching my head trying to get this working. My hosting company had Priority text box so I needed to remove that.

    Thanks

  11. Anonymous Anonymous

    great post. Saved me alot of time and effort

  12. In Cpanel, is not possible, only in WHM

  13. Anonymous Anonymous

    Hello, My office 365 still wont verify the entries I created based on the information below. I was able to create the records on the dyndns page. I created two versions with ttl 3600 and 60

  14. Frosty Frosty

    Thanks, this was really helpful for me. I am using Hosting Controller .NET (aka iHostASP.NET’s new platform). I had to use a fully qualified hostname, like this:

    _sip._tls.mydomain.com. IN SRV 100 1 443 sipdir.online.lync.com.

    _sipfederationtls._tcp.mydomain.com. IN SRV 100 1 5061 sipfed.online.lync.com.

    *** also note that it took maybe 5 minutes before Office 365 recognised these changes, which confused me even more at the beginning. You really have to make a change, then wait a bit and be patient, otherwise you might fix it and then break it again without realising!

  15. Thank you SO much for this, it helped me figure out the settings for an exchange online setup I was doing

  16. Anonymous Anonymous

    Thank you, your example for DYNDNS was exactly what I was looking for!!!

  17. The post is rather old but I was wondering if there is a good guide on editing the DNS on a C-Panel/WHM. I spent hours with an Office 365 tech support trying to figure out the problems with the entries, I mean, I don’t use some weired platform beside not using GoDaddy… Thanks all.

  18. […] How to Add the SRV Records for Office 365 to a DNS … – How to Add the SRV Records for Office 365 to a DNS … Lync, Office 365, SIP, SRV Record on June … I don’t use some weired platform beside not using GoDaddy … […]

  19. […] How to Add the SRV Records for Office 365 to a DNS … – Brad February 26, 2014 at 2:38 pm. Good god thank you – I even use a DNS provider that allows me to add SRV records exactly as Office365 prescribes. […]

  20. […] How to Add the SRV Records for Office 365 to a DNS … – Host: TTL: Type: Data: _sip._tls.mydomain.com: 60: SRV: 1 100 443 sipdir.online.lync.com. _sipfederationtls._tcp.mydomain.com: 60: SRV: 1 100 5061 … […]

  21. […] How to Add the SRV Records for Office 365 to a DNS … – Brad February 26, 2014 at 2:38 pm. Good god thank you – I even use a DNS provider that allows me to add SRV records exactly as Office365 prescribes. […]

  22. Anonymous Anonymous

    Thank you!! MS are morons for not mention it in their how to guide.

  23. Thanks, this worked for me, missing the full stop. Doh.

  24. […] How to Add the SRV Records for Office 365 to a DNS … – Brad February 26, 2014 at 2:38 pm. Good god thank you – I even use a DNS provider that allows me to add SRV records exactly as Office365 prescribes. […]

  25. damo damo

    You are a LEGEND!! I have been having all sorts of problems getting this working using Telstra CustData. Your DNS string info saved the day!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.