title: Is NSNetService only works with .local domain?
body: <p>I have a code <a href="https://github.com/robbiehanson/CocoaHTTPServer/blob/master/Core/HTTPServer.m" rel="nofollow">CocoaHTTPServer</a> which publishes service using Bonjour. And tt uses NSNetService for this. </p>
  
  <p>It works fine (both on OS X and iOS) if you define domain ".local". However, if you define anything else, it doesn't publish a service and it doesn't call a delegate that it didn't publish the server.</p>
  
  <p>I investigated this and found following info.</p>
  
  <p>Documentation from <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/Reference/Reference.html" rel="nofollow">NSNetService class</a>:</p>
  
  <blockquote>
    <p>This class and the NSNetServiceBrowser class use multicast DNS to
    convey information about network services to and from your
    application.</p>
  </blockquote>
  
  <p>Documentation from <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/NetServices/Articles/domainnames.html" rel="nofollow">Bonjour domain names</a></p>
  
  <blockquote>
    <p>On Bonjour systems, local. is used to indicate a name that should be
    looked up using an IP multicast query on the local IP network.</p>
  </blockquote>
  
  <p>Do I understand correctly that NSNetService class can work only with .local domain and can't work with wide-area bonjour (different domains)?</p>
  
  <p>P.S. If I am not missing anything, I plan to contact Apple, because it's strange to have an argument with just one correct value and all other incorrect (and not reported through any errors)</p>