Skip to content

Commit 2c819c7

Browse files
committed
added recent dns resource record types
1 parent db2585b commit 2c819c7

File tree

1 file changed

+62
-46
lines changed

1 file changed

+62
-46
lines changed

DNS/dnsData/dnsTypes.php

+62-46
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Metaregistrar\DNS {
3+
// Reference http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml
34
class dnsTypes
45
{
56
var $types_by_id;
@@ -16,62 +17,77 @@ function __construct()
1617
$this->types_by_id = array();
1718
$this->types_by_name = array();
1819

19-
$this->AddType(1, "A");
20-
$this->AddType(2, "NS");
21-
$this->AddType(5, "CNAME");
22-
$this->AddType(6, "SOA");
23-
$this->AddType(12, "PTR");
20+
$this->AddType(1, "A"); // RFC1035
21+
$this->AddType(2, "NS"); // RFC1035
22+
$this->AddType(5, "CNAME"); // RFC1035
23+
$this->AddType(6, "SOA"); // RFC1035 RFC2308
24+
$this->AddType(12, "PTR"); // RFC1035
2425
$this->AddType(13, "HINFO");
2526
$this->AddType(14, "MINFO");
26-
$this->AddType(15, "MX");
27-
$this->AddType(16, "TXT");
28-
$this->AddType(17, "RP");
29-
$this->AddType(18, "AFSDB");
30-
$this->AddType(19, "X25");
31-
$this->AddType(20, "ISDN");
32-
$this->AddType(21, "RT");
33-
$this->AddType(22, "NSAP");
34-
$this->AddType(23, "NSAP-PTR");
35-
$this->AddType(24, "SIG");
36-
$this->AddType(25, "KEY");
37-
$this->AddType(26, "PX");
38-
$this->AddType(27, "GPOS");
39-
$this->AddType(28, "AAAA");
40-
$this->AddType(29, "LOC");
27+
$this->AddType(15, "MX"); // RFC1035 RFC7505
28+
$this->AddType(16, "TXT"); // RFC1035
29+
$this->AddType(17, "RP"); // RFC1183
30+
$this->AddType(18, "AFSDB"); // RFC1183 RFC5864
31+
$this->AddType(19, "X25"); // RFC1183
32+
$this->AddType(20, "ISDN"); // RFC1183
33+
$this->AddType(21, "RT"); // RFC1183
34+
$this->AddType(22, "NSAP"); // RFC1706
35+
$this->AddType(23, "NSAP-PTR"); // RFC1348 RFC1637 RFC1706
36+
$this->AddType(24, "SIG"); // RFC4034 RFC3755 RFC2535 RFC2536 RFC2537 RFC3008 RFC3110
37+
$this->AddType(25, "KEY"); // RFC2930 RFC4034 RFC2535 RFC2536 RFC2537 RFC3008 RFC3110
38+
$this->AddType(26, "PX"); // RFC2136
39+
$this->AddType(27, "GPOS"); // RFC1712
40+
$this->AddType(28, "AAAA"); // RFC3596
41+
$this->AddType(29, "LOC"); // RFC1876
4142
$this->AddType(31, "EID");
4243
$this->AddType(32, "NIMLOC");
43-
$this->AddType(33, "SRV");
44+
$this->AddType(33, "SRV"); // RFC2782
4445
$this->AddType(34, "ATMA");
45-
$this->AddType(35, "NAPTR");
46-
$this->AddType(36, "KX");
47-
$this->AddType(37, "CERT");
48-
$this->AddType(39, "DNAME");
46+
$this->AddType(35, "NAPTR"); // RFC3403
47+
$this->AddType(36, "KX"); // RFC2230
48+
$this->AddType(37, "CERT"); // RFC4398
49+
$this->AddType(39, "DNAME"); // RFC2672
4950
$this->AddType(40, "SINK");
50-
$this->AddType(41, "OPT");
51+
$this->AddType(41, "OPT"); // RFC6891 RFC3658
5152
$this->AddType(42, "APL");
52-
$this->AddType(43, "DS");
53-
$this->AddType(44, "SSHFP");
54-
$this->AddType(45, "IPSECKEY");
55-
$this->AddType(46, "RRSIG");
56-
$this->AddType(47, "NSEC");
57-
$this->AddType(48, "DNSKEY");
58-
$this->AddType(49, "DHCID");
59-
$this->AddType(50, "NSEC3");
60-
$this->AddType(51, "NSEC3PARAM");
61-
$this->AddType(52, "TLSA");
62-
$this->AddType(55, "HIP");
53+
$this->AddType(43, "DS"); // RFC4034 RFC3658
54+
$this->AddType(44, "SSHFP"); // RFC4255
55+
$this->AddType(45, "IPSECKEY"); // RFC4025
56+
$this->AddType(46, "RRSIG"); // RFC4034 RFC3755
57+
$this->AddType(47, "NSEC"); // RFC4034 RFC3755
58+
$this->AddType(48, "DNSKEY"); // RFC4034 RFC3755
59+
$this->AddType(49, "DHCID"); // RFC4701
60+
$this->AddType(50, "NSEC3"); // RFC5155
61+
$this->AddType(51, "NSEC3PARAM"); // RFC5155
62+
$this->AddType(52, "TLSA"); // RFC6698
63+
$this->AddType(55, "HIP"); // RFC5205
6364
$this->AddType(56, "NINFO");
6465
$this->AddType(57, "RKEY");
6566
$this->AddType(58, "TALINK");
66-
$this->AddType(59, "CDS");
67-
$this->AddType(99, "SPF");
68-
$this->AddType(249, "TKEY");
69-
$this->AddType(250, "TSIG");
70-
$this->AddType(251, "IXFR");
71-
$this->AddType(252, "AXFR");
72-
$this->AddType(253, "MAILB");
73-
$this->AddType(254, "MAILA");
74-
$this->AddType(255, "ANY");
67+
$this->AddType(59, "CDS"); // RFC7344
68+
$this->AddType(60, "CDNSKEY"); // RFC7344
69+
$this->AddType(61, "OPENPGPKEY"); // internet draft
70+
$this->AddType(62, "CSYNC"); // RFC7477
71+
$this->AddType(99, "SPF"); // RFC4408 RFC7208
72+
$this->AddType(100, "UNIFO"); // IANA Reserved
73+
$this->AddType(101, "UID"); // IANA Reserved
74+
$this->AddType(102, "GID"); // IANA Reserved
75+
$this->AddType(103, "UNSPEC"); // IANA Reserved
76+
$this->AddType(104, "NID"); // RFC6742
77+
$this->AddType(105, "L32"); // RFC6742
78+
$this->AddType(106, "L64"); // RFC6742
79+
$this->AddType(107, "LP"); // RFC6742
80+
$this->AddType(108, "EUI48"); // RFC7043
81+
$this->AddType(109, "EUI64"); // RFC7043
82+
$this->AddType(249, "TKEY"); // RFC2930
83+
$this->AddType(250, "TSIG"); // RFC2845
84+
$this->AddType(251, "IXFR"); // RFC1995
85+
$this->AddType(252, "AXFR"); // RFC1035 RFC5936
86+
$this->AddType(253, "MAILB"); // RFC1035
87+
$this->AddType(254, "MAILA"); // RFC1035
88+
$this->AddType(255, "ANY"); // RFC1035 RFC6895
89+
$this->AddType(256, "URI"); // RFC7553
90+
$this->AddType(257, "CAA"); // RFC6844
7591
$this->AddType(32768, "TA");
7692
$this->AddType(32769, "DLV");
7793
$this->AddType(65534, "TYPE65534"); // Eurid uses this one?

0 commit comments

Comments
 (0)