<div><span class="gmail_quote">On 6/25/07, <b class="gmail_sendername">Matt Mossholder</b> &lt;<a href="mailto:matt+mythTV-Users@mossholder.com">matt+mythTV-Users@mossholder.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Mon, 2007-06-25 at 10:58 -0400, Rod Smith wrote:<br>&gt; Neither DNS nor NTP would do the job; neither was intended to transfer records
<br>&gt; as large as we&#39;re talking about. For something &quot;similar to&quot; these protocols,<br>&gt; but designed to transfer files of the size we&#39;re discussing, it starts to<br>&gt; look a lot like Usenet or a P2P network, which is why the discussion on this
<br>&gt; topic has focused on those two options so far.<br>&gt;<br><br>Rod,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On first glance I was inclined to agree with the detractors of<br>using<br>DNS to host the data. However, a little research shows this may not be
<br>as obvious as we all thought. Here&#39;s&nbsp;&nbsp;a quote [1] from <a href="http://zeroconf.org">zeroconf.org</a><br>about DNS TXT records (the type we would use for a DNS based listings<br>service):<br><br>&quot;General format rules for DNS TXT records
<br>A DNS TXT record can be up to 65535 (0xFFFF) bytes long. The total<br>length is indicated by the length given in the resource record header in<br>the DNS message. There is no way to tell directly from the data alone<br>
how long it is (e.g. there is no length count at the start, or<br>terminating NULL byte at the end).<br><br>The format of the data within a DNS TXT record is zero or more strings,<br>packed together in memory without any intervening gaps or padding bytes
<br>for word alignment.<br><br>The format of each constituent string within the DNS TXT record is a<br>single length byte, followed by 0-255 bytes of text data.<br><br>These format rules are defined in Section 3.3.14 of RFC 1035, and are
<br>not specific to DNS-SD. DNS-SD simply specifies a usage convention for<br>what data should be stored in those constituent strings.&quot;<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The first sentence is very telling. Each record can be up to<br>
64K. I<br>seem to remember that the napkin-back calculations for the size of an<br>entry were along the lines of 1-2K per entry. Given this, it seems like<br>DNS TXT records may actually be an even better solution than NNTP...
<br>consider the following:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * DNS is pretty much a requirement for all ISPs, while NNTP<br>isn&#39;t as<br>well supported anymore (e.g. ISPs blocking access).<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * DNS records get cached by practically every ISP in the world,
<br>NNTP is<br>fading away, if only because people have some many different<br>alternatives (My take, at least. Tell me if I am wrong).<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * DNS zone serial numbers and TTL could be used to handle record<br>updates. TTL could be used to minimize the need to re-request data on a
<br>per-record basis, and the actual record TTL could be set based on the<br>historical rate of change for the given channel (e.g. changes to channel<br>X always occur more than 24 hours before broadcast, while channel Y is
<br>changing the schedule up to the current hour). If we were really spiffy,<br>we could set the TTL of each returned request from the primary DNS<br>server, so that they expire within, say, 2 hours of the air time for the
<br>show.<br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thoughts?<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --Matt<br><br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org
</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div>
<div><br>Well, being an old ISP guy...&nbsp; I don&#39;t think using something like DNS to distribute non-DNS information is a good idea.&nbsp; There are many reasons, but I won&#39;t bother everyone with them.&nbsp; The MAIN reason is, it&#39;s not designed for it.&nbsp; Most DNS providers are moving toward more dynamic installations (smaller TTLs, less cacheing).&nbsp; The TXT records are going to be used to help with server authentication strings, anti-SPAM information, etc...&nbsp; All things that DNS is designed for.
</div>
<div>&nbsp;</div>
<div>I agree with you 100% that it CAN be done, but I don&#39;t think it should.&nbsp; There are plenty of other options (including basic database/php/HTTPs transports that I&#39;m guessing will be used.</div>