# HG changeset patch # User rejo # Date 1221208797 0 # Node ID 6a87ca695244c149eb4d7a8389ce8864fad36496 # Parent 3d18290ac99383c094a36acb88db77bb80924844 [feladat @ 303] Added preliminary support for SPF (other than in TXT) and SSHFP records. Valdiation for these types will be added in near future. As requested in #89. diff -r 3d18290ac993 -r 6a87ca695244 inc/dns.inc.php --- a/inc/dns.inc.php Thu Aug 07 18:45:13 2008 +0000 +++ b/inc/dns.inc.php Fri Sep 12 08:39:57 2008 +0000 @@ -89,6 +89,8 @@ case "MBOXFW": case "NAPTR": + case "SPF": + case "SSHFP": case "URL": // These types are supported by PowerDNS, but there is not // yet code for validation. Validation needs to be added diff -r 3d18290ac993 -r 6a87ca695244 inc/toolkit.inc.php --- a/inc/toolkit.inc.php Thu Aug 07 18:45:13 2008 +0000 +++ b/inc/toolkit.inc.php Fri Sep 12 08:39:57 2008 +0000 @@ -84,12 +84,12 @@ $server_types = array("MASTER", "SLAVE", "NATIVE"); // $rtypes - array of possible record types -$rtypes = array('A', 'AAAA', 'CNAME', 'HINFO', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'); +$rtypes = array('A', 'AAAA', 'CNAME', 'HINFO', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT'); // If fancy records is enabled, extend this field. if($dns_fancy) { - $rtypes[12] = 'URL'; - $rtypes[13] = 'MBOXFW'; + $rtypes[14] = 'URL'; + $rtypes[15] = 'MBOXFW'; } // $template - array of records that will be applied when adding a new zone file