[feladat @ 303]
authorrejo
Fri, 12 Sep 2008 08:39:57 +0000
changeset 193 6a87ca695244
parent 192 3d18290ac993
child 194 df674d004508
[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.
inc/dns.inc.php
inc/toolkit.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 
--- 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