Communicator Automatic Configuration and Split-Brain DNS

A lot has been written about the way that Microsoft Office Communicator uses DNS to automatically discover a registration point for a given SIP URI. I won’t repeat all of that here. But, I do want to emphasize one of the unique constraints that Communicator places on the DNS SRV records it uses.

For automatic configuration to succeed, Communicator requires that the domain of the target host match the domain of the user’s SIP URI. This requirement is driven by a security decision the Communicator team made (not by a DNS requirement). The reason is provided in the documentation this way:

This tight validation between the host name and the URI is done specifically because the only configuration with which the client is provided is the SIP URI. Because of this, the client must be very careful not to allow DNS attacks to allow it to connect to any man-in-the-middle, who could thereby watch Communicator’s traffic. By having a tight tie between the URI and the host names allowed for logon, Communicator has better certainty that the certificate the user is validating actually has authority for the domain to which he is trying to log on to.

In other words, it’s not sufficient for an attacker to simply create the appropriate DNS SRV records to fool your Communicator to logon through his server. (Which would be trivial.) He’ll also need to get a certificate that you trust for an FQDN that falls within in your organization’s domain. (Which should be much harder.)

In practice, this constraint means that this is a valid SRV record to be used in automatic configuration for the user 86400 IN SRV 0 0 5061

However, this record will not be used by Communicator for automatic configuration even though it is a valid SRV record: 86400 IN SRV 0 0 5061

(I’m using this standard format for representing SRV records: _Service._Proto.Name TTL Class SRV Priority Weight Port Target. In the second example, notice that the target host is not in the domain.)

This can create problems for organizations that do not resolve queries for their public DNS name internally. If you use an internal DNS namespace, it is likely to be unrelated to the domain of your SIP URIs (because we recommend that your SIP URI match your SMTP address which must be a public DNS domain). You might be tempted to put a record like this in your public DNS: 86400 IN SRV 0 0 5061 ocspool.contoso.local.

Unfortunately, Communicator will not attempt to connect to ocspool.contoso.local for the someone in the SIP domain. (To be more correct, it will connect to ocspool.contoso.local if that name is provided by group policy or configured manually in Communicator. It is only considered invalid for the purposes of automatic configuration.)

Additionally, creating these records in your external DNS for internal clients will reveal something about your internal addressing to the outside world. Most security folk consider this a “no-no.”

For these reasons, I generally say that split-brain DNS is required to enable the automatic configuration of Communicator to work properly for both internal use (where Communicator should find a director or pool server) and external use (where Communicator should find your Access Edge). For many of my customers, this has not been a problem. They have already been resolving some form of their public name internally already.

For the customers that don’t already have split-brain DNS implemented, it is a big leap for them to begin resolving their external domain internally. To suggest that Contoso should suddenly put the DNS zone on their internal DNS servers simply to accommodate an OCS deployment will likely get you laughed out of the room.

A more reasonable suggestion is to create what I’ll call two “pinpoint” DNS zones. These are internal zones that will resolve just the names that we want for automatic configuration. All other names in their external DNS domain will be unaffected.

To implement this for Contoso, we would create a zone “” and zone “” Notice that these are two zones – not two records in one “” zone. A zone is a name resolution boundary in the hierarchical DNS namespace. By configuring the internal DNS server to be authoritative only for these two names, clients will continue resolving other names in the domain as they always have.

Coincidentally, over on his blog, Geoff Clark has just suggested the same thing. He describes the problem and suggests the same solution but shows a method of creating the zone on a Windows DNS server via the DNS management console. Unfortunately, there is a limitation in the management console that is not present in the underlying Windows DNS implementation. This limitation required Geoff to create the zone as “” when what we would really like is a zone named “”

This limitation in the user interface can be resolved by creating the zones and the records using the Dnscmd command line tool. For Contoso, here are the required commands:

dnscmd . /zoneadd /dsprimary
dnscmd . /recordadd @ SRV 0 0 5061
dnscmd . /zoneadd /dsprimary
dnscmd . /recordadd @ A

Of course, you’ll need to make the appropriate changes for your environment. If you are not running the command on your Windows DNS server, you will need to replace the first dot with your server name. You may also prefer a different zone type than “dsprimary.” If so, change the zoneadd commands appropriately. I doubt that your pool’s IP address is the same as my example but, if you have followed me this far, you already know what to change there.

I hope this suggestion helps somebody. Please let me know by providing feedback.


This post has been brought to you by someone who disagreed with me and forced me to explain myself.

Comments (9)

  1. Anonymous says:

    Wow, people need to argue with you more.  Nice post.

  2. Manuel says:

    Great explanation.  Good work!

    Thank you for that.

  3. Melissa Swofford says:

    Thanks, Doug.  We are seeing this at more and more sites and your blog provides an excellent reference for those with questions.

  4. Mark Hickson says:

    This is an AWESOME post!  Great job and thank you!

  5. Jim Raymond says:

    I’m not that person, but trust me…don’t argue with Doug. 😉

    Nice post, wish I had thought of this a year and a half ago when I was faced with adding the external zone internally.

  6. shahan says:

    Realy great info..! Thank you..!

  7. Mike says:

    Great Post and i have followed the instructions but i still cannot connect with auto-config. On the DNS Server nslookup works for SRV and i can ping  But from a client VM connected via VPN i cannot ping or resolve SRV.  

    Any ideas?  

  8. Betsy says:

    This works perfectly for our OCS installation.  However, our live meeting with more than 2 internal participants does not work.  it works with external/internet users.  I think it has to do with DNS records also.  Will creating zones for work in the same manner?  I'll give it  a shot..

  9. Anonymous says:

    Communicator Automatic Configuration and Split-Brain DNS – DMTF – Site Home – TechNet Blogs