<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Supported record types and their storage</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PowerDNS manual" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Index of all Authoritative Server metrics" HREF="metrics.html"><LINK REL="NEXT" TITLE="HOWTO & Frequently Asked Questions" HREF="faq.html"></HEAD ><BODY CLASS="CHAPTER" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PowerDNS manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="metrics.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="faq.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="CHAPTER" ><H1 ><A NAME="TYPES" ></A >Chapter 17. Supported record types and their storage</H1 ><P > This chapter lists all record types PDNS supports, and how they are stored in backends. The list is mostly alphabetical but some types are grouped. </P ><P > The PowerDNS Recursor can serve and store all record types, regardless of wether these are explicitly supported. <P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT >A</DT ><DD ><P > The A record contains an IP address. It is stored as a decimal dotted quad string, for example: '213.244.168.210'. </P ></DD ><DT >AAAA</DT ><DD ><P > The AAAA record contains an IPv6 address. An example: '3ffe:8114:2000:bf0::1'. </P ></DD ><DT >AFSDB (since 2.9.21)</DT ><DD ><P > Specialised record type for the 'Andrew Filesystem'. Stored as: '#subtype hostname', where subtype is a number. </P ></DD ><DT >CERT (since 2.9.21)</DT ><DD ><P > Specialised record type for storing certificates, defined in RFC 2538. </P ></DD ><DT >CNAME</DT ><DD ><P > The CNAME record specifies the canonical name of a record. It is stored plainly. Like all other records, it is not terminated by a dot. A sample might be 'webserver-01.yourcompany.com'. </P ></DD ><DT >DNSKEY (since 2.9.21)</DT ><DD ><P > The DNSKEY DNSSEC record type is fully supported, as described in RFC 3757. Note that while PowerDNS can store, retrieve and serve DNSSEC records, no further DNSSEC processing is performed. </P ></DD ><DT >DS (since 2.9.21)</DT ><DD ><P > The DS DNSSEC record type is fully supported, as described in RFC 3757. Note that while PowerDNS can store, retrieve and serve DNSSEC records, no further DNSSEC processing is performed. </P ></DD ><DT >HINFO</DT ><DD ><P > Hardware Info record, used to specify CPU and operating system. Stored with a single space separating these two, example: 'i386 Linux'. </P ></DD ><DT >KEY (since 2.9.21)</DT ><DD ><P > The LOC record is fully supported. For its syntax, see RFC 2535. </P ></DD ><DT >LOC</DT ><DD ><P > The LOC record is fully supported. For its syntax, see RFC 1876. A sample content would be: '51 56 0.123 N 5 54 0.000 E 4.00m 1.00m 10000.00m 10.00m' </P ></DD ><DT >MX</DT ><DD ><P > The MX record specifies a mail exchanger host for a domain. Each mail exchanger also has a priority or preference. This should be specified in the separate field dedicated for that purpose, often called 'prio'. </P ></DD ><DT ><A NAME="NAPTR" ></A >NAPTR</DT ><DD ><P > Naming Authority Pointer, RFC 2915. Stored as follows: <PRE CLASS="SCREEN" > '100 50 "s" "z3950+I2L+I2C" "" _z3950._tcp.gatech.edu'. </PRE > The fields are: order, preference, flags, service, regex, replacement. Note that the replacement is not enclosed in quotes, and should not be. The replacement may be omitted, in which case it is empty. See also RFC 2916 for how to use NAPTR for ENUM (E.164) purposes. </P ></DD ><DT >NS</DT ><DD ><P > Nameserver record. Specifies nameservers for a domain. Stored plainly: 'ns1.powerdns.com', as always without a terminating dot. </P ></DD ><DT >NSEC (since 2.9.21)</DT ><DD ><P > The NSEC DNSSEC record type is fully supported, as described in RFC 3757. Note that while PowerDNS can store, retrieve and serve DNSSEC records, no further DNSSEC processing is performed. </P ></DD ><DT >PTR</DT ><DD ><P > Reverse pointer, used to specify the host name belonging to an IP or IPv6 address. Name is stored plainly: 'www.powerdns.com'. As always, no terminating dot. </P ></DD ><DT >RP</DT ><DD ><P > Responsible Person record, as described in RFC 1183. Stored with a single space between the mailbox name and the more-information pointer. Example 'peter.powerdns.com peter.people.powerdns.com', to indicate that peter@powerdns.com is responsible and that more information about peter is available by querying the TXT record of peter.people.powerdns.com. </P ></DD ><DT >RRSIG (since 2.9.21)</DT ><DD ><P > The RRSIG DNSSEC record type is fully supported, as described in RFC 3757. Note that while PowerDNS can store, retrieve and serve DNSSEC records, no further DNSSEC processing is performed. </P ></DD ><DT ><A NAME="SOA-TYPE" ></A >SOA</DT ><DD ><P > The Start of Authority record is one of the most complex available. It specifies a lot about a domain: the name of the master nameserver ('the primary'), the hostmaster and a set of numbers indicating how the data in this domain expires and how often it needs to be checked. Further more, it contains a serial number which should rise on each change of the domain. </P ><P > The stored format is: <PRE CLASS="SCREEN" > primary hostmaster serial refresh retry expire default_ttl </PRE > Besides the primary and the hostmaster, all fields are numerical. PDNS has a set of default values: <DIV CLASS="TABLE" ><A NAME="AEN4216" ></A ><P ><B >Table 17-1. SOA fields</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><TBODY ><TR ><TD >primary</TD ><TD ><B CLASS="COMMAND" >default-soa-name</B > configuration option</TD ></TR ><TR ><TD >hostmaster</TD ><TD >hostmaster@domain-name</TD ></TR ><TR ><TD >serial</TD ><TD >0</TD ></TR ><TR ><TD >refresh</TD ><TD >10800 (3 hours)</TD ></TR ><TR ><TD >retry</TD ><TD >3600 (1 hour)</TD ></TR ><TR ><TD >expire</TD ><TD >604800 (1 week)</TD ></TR ><TR ><TD >default_ttl</TD ><TD >3600 (1 hour)</TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > The fields have complicated and sometimes controversial meanings. The 'serial' field is special. If left at 0, the default, PDNS will perform an internal list of the domain to determine highest change_date field of all records within the zone, and use that as the zone serial number. This means that the serial number is always raised when changes are made to the zone, as long as the change_date field is being set. </P ></DD ><DT >SPF (since 2.9.21)</DT ><DD ><P > SPF records can be used to store Sender Permitted From details. </P ></DD ><DT >SSHFP (since 2.9.21)</DT ><DD ><P > The SSHFP record type, used for storing Secure Shell (SSH) fingerprints, is fully supported. A sample from RFC 4255 is: '2 1 123456789abcdef67890123456789abcdef67890'. </P ></DD ><DT >SRV</DT ><DD ><P > SRV records can be used to encode the location and port of services on a domain name. When encoding, the priority field is used to encode the priority. For example, '_ldap._tcp.dc._msdcs.conaxis.ch SRV 0 100 389 mars.conaxis.ch' would be encoded with 0 in the priority field and '100 389 mars.conaxis.ch' in the content field. </P ></DD ><DT >TXT</DT ><DD ><P > The TXT field can be used to attach textual data to a domain. Text is stored plainly. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="metrics.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="faq.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Index of all Authoritative Server metrics</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >HOWTO & Frequently Asked Questions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >