{"id":40,"date":"2010-01-03T13:53:04","date_gmt":"2010-01-03T19:53:04","guid":{"rendered":"http:\/\/blog.ddg.com\/?p=40"},"modified":"2010-01-03T13:53:05","modified_gmt":"2010-01-03T19:53:05","slug":"dns-sd-configuration-gotcha","status":"publish","type":"post","link":"http:\/\/blog.ddg.com\/?p=40","title":{"rendered":"DNS-SD Configuration &#8220;Gotcha&#8221;"},"content":{"rendered":"<p><a href=\"http:\/\/welosttogether.com\/\">weLost\u2122<\/a> uses DNS-SD, DNS Service Discovery, to bootstrap the location of its social network servers. While this was a good idea, it had a very subtle &#8220;gotcha&#8221; in its configuration. The basic configuration instructions are described here in: <a href=\"http:\/\/www.dns-sd.org\/ServerStaticSetup.html\">Static Server Setup<\/a>. If you do not intend to support browsing for your resources, then things are even simpler but there is still that pesky &#8220;gotcha&#8221;. To support direct access you only need to implement the third set of DNS records. The one&#8217;s labeled: &#8220;SRV &#038; TXT records describing each service entity named above&#8221;. <\/p>\n<p>If my experience with the iPhone is a guide, the TXT record is not optional. Every service you query MUST have a TXT record. In my case, I neglected to set the TXT record for my narrow web HTTP server. This caused every NSNetService query to timeout. Solving this problem was simple, I entered &#8220;txtvers=1&#8221; as the body (minus the quote marks) for the TXT record. This is a default version of the format of all DNS-SD TXT records. There are other values you could use, particularly for HTTP, but this one is both innocuous and sufficient.<\/p>\n<p>Enjoy and Anon,<br \/>\nAndrew<\/p>\n","protected":false},"excerpt":{"rendered":"<p>weLost\u2122 uses DNS-SD, DNS Service Discovery, to bootstrap the location of its social network servers. While this was a good idea, it had a very subtle &#8220;gotcha&#8221; in its configuration. The basic configuration instructions are described here in: Static Server Setup. If you do not intend to support browsing for your resources, then things are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,4],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-code","category-ddg","category-iphone"],"_links":{"self":[{"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"http:\/\/blog.ddg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ddg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}