<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<?rfc compact="yes"?>
<?rfc toc="yes"?>

<rfc category="info" ipr="full2026"
     docName="draft-josefsson-mime-dns-02">

<front>

<title>
Domain Name System Media Types
</title>

<author initials="S." surname="Josefsson" fullname="Simon Josefsson">
	<organization></organization>
	<address>
		<email>simon@josefsson.org</email>
	</address>
</author>
	
<date month="March" year="2004"/>

<abstract>

	<t>This document register the media types application/dns and
	text/dns, in accordance with RFC 2048 <xref target="RFC2048"
	/>. The application/dns media type is used to identify data on
	the detached Domain Name System (DNS) format described in RFC
	2540 <xref target="RFC2540" />. The text/dns media type is
	used to identify master files as described in RFC 1035 <xref
	target="RFC1035" />.</t>

</abstract>

</front>
	
<middle>

<section title="Introduction">

	<t>Domain Name System (DNS) information is traditionally
	stored in text files, so called master files or zone files.
	The format is described in section 5 of RFC 1035 <xref
	target="RFC1035" />.</t>

	<t>DNS data can also be stored in a "detached" format,
	intended for archiving purposes, described in RFC 2540 <xref
	target="RFC2540" />.</t>

	<t>This document register MIME media types for the two data
	formats, following the registration procedures described in
	RFC 2048 <xref target="RFC2048" />.</t>

	<t><vspace blankLines="10000" /></t>

</section>

<section title="MIME type registration of application/dns">

	<figure>
	<artwork>
To: ietf-types@iana.org
Subject: Registration of MIME media type application/dns
	</artwork>
	</figure>

	<t>MIME media type name: application</t>

	<t>MIME subtype name: dns</t>

	<t>Required parameters: None.</t>

	<t>Optional parameters: None.</t>

	<t>Encoding considerations: The data format is binary, and
	data must be transfered unmodified. Using encodings intended
	for textual parts is not recommended.</t>

	<t>Security considerations: This media type identify content
	as being detached DNS information, as documented in RFC 2540
	<xref target="RFC2540" />. This data may be security relevant
	according to RFC 2538 <xref target="RFC2538" />, or secured
	information according to RFC 2535 <xref target="RFC2535" />.
	Securing the content further may be done by standard
	techniques, such as OpenPGP <xref target="RFC2440" /> or CMS
	<xref target="RFC3369" />, but this is outside of the scope
	here.  Further security assessments are not available at this
	point.</t>

	<t>Interoperability considerations: The encoding of detached
	DNS information is, unlike textual master files, well defined.
	No further interoperability considerations are known.</t>

	<t>Published specification: The format of data that could be
	tagged with this media type is documented in RFC 2540 <xref
	target="RFC2540" />.</t>

	<t>Applications which use this media type: DNS related
	software, including software storing and using certificates
	stored in DNS.</t>

	<figure>
	<artwork>
Additional information:
  Magic number(s): None.
  File extension(s): Unknown.
  Macintosh File Type Code(s): Unknown.
	</artwork>
	</figure>

	<t>Person & email address to contact for further information:</t>

	<t>Simon Josefsson simon@josefsson.org</t>

	<t>Intended usage: LIMITED USE</t>

	<t>Author/Change controller: simon@josefsson.org</t>

	<t><vspace blankLines="10000" /></t>

</section>

<section title="MIME type registration of text/dns">

	<figure>
	<artwork>
To: ietf-types@iana.org
Subject: Registration of MIME media type text/dns
	</artwork>
	</figure>

	<t>MIME media type name: text</t>

	<t>MIME subtype name: dns</t>

	<t>Required parameters: None.</t>

	<t>Optional parameters: None.</t>

	<t>Encoding considerations: The data is textual, and should be
	transferred in a line oriented mode. Text literals may contain
	CRLF within the text. Binary transports is possible between
	systems that use the same end-of-line conventions. Master
	files are in general ASCII, but non-ASCII octet values may
	occur and are treated as opaque values by DNS software
	(compare RFC 1035 section 5). The master file format permits
	encoding arbitrary octet values using the "\DDD" encoding.
	The use of "\DDD" encoding can be more reliable than
	transporting non-ASCII through MIME transports, if data passes
	through a gateway that re-encode the character data.</t>

	<t>Security considerations: This media type identify content
	as being DNS information in "master file" format, as
	documented in RFC 1035 <xref target="RFC1035" />. The DNS data
	may be security relevant according to RFC 2538 <xref
	target="RFC2538" />, or secured information according to RFC
	2535 <xref target="RFC2535" />. Securing the content further
	may be done by standard techniques, such as OpenPGP <xref
	target="RFC2440" /> or CMS <xref target="RFC3369" />, but this
	is outside of the scope here. Further security assessments are
	not available at this point.</t>

	<t>Interoperability considerations: There are interoperability
	concerns with master files, due to the wide spread use of
	vendor specific extensions. Non-ASCII comments within master
	files may have been encoded in a locally chosen character
	sets, that can be difficult to transport interoperable.
	Non-ASCII data in general can become corrupted by re-encoding
	gateways. To achieve interoperability, you can use the master
	file format described in the specification and the "\DDD"
	encoding for non-ASCII octets.</t>

	<t>Published specification: The format of data that could be
	tagged with this MIME type is documented in RFC 1035 <xref
	target="RFC1035" />.</t>

	<t>Applications which use this media type: DNS related
	software, including software storing and using certificates
	stored in DNS.</t>

	<figure>
	<artwork>
Additional information:
  Magic number(s): None.
  File extension(s): 'soa' and 'zone' are known to be used.
  Macintosh File Type Code(s): Unknown.
	</artwork>
	</figure>

	<t>Person & email address to contact for further information:</t>

	<t>Simon Josefsson simon@josefsson.org</t>

	<t>Intended usage: LIMITED USE</t>

	<t>Author/Change controller: simon@josefsson.org</t>

	<t><vspace blankLines="10000" /></t>

</section>

<section title="Security Considerations">

  <t>Security considerations are discussed in the security
    considerations clause of the MIME registrations in section 2 and
    3.</t>

</section>

<section title="IANA Considerations">

  <t>The IANA is asked to register the MIME media types
    application/dns and text/dns using the registration templates in
    section 2 and 3, according to the procedure described in RFC 2048
    <xref target="RFC2048" />.</t>

</section>

<section title="Acknowledgments">

  <t>Thanks to D. Eastlake for suggesting text/dns. Thanks to Keith
    Moore for reviewing earlier versions of this document.  The author
    acknowledges the RSA Laboratories for supporting the work that led
    to this document.</t>

</section>

</middle>

<back>

<references title="Normative References">

  <?rfc include="reference.RFC.1034.xml"?>
  <?rfc include="reference.RFC.1035.xml"?>
  <?rfc include="reference.RFC.2048.xml"?>
  <?rfc include="reference.RFC.2540.xml"?>

</references>

<references title="Informative References">

  <?rfc include="reference.RFC.2440.xml"?>
  <?rfc include="reference.RFC.2535.xml"?>
  <?rfc include="reference.RFC.2538.xml"?>
  <?rfc include="reference.RFC.3369.xml"?>

</references>

</back>

</rfc>
