This repository was archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathiana-dns-class-rr-type.yang
850 lines (800 loc) · 21.9 KB
/
iana-dns-class-rr-type.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
module iana-dns-class-rr-type {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:iana-dns-class-rr-type";
prefix dnsct;
organization
"Internet Assigned Numbers Authority (IANA)";
contact
" Internet Assigned Numbers Authority
Postal: ICANN
4676 Admiralty Way, Suite 330
Marina del Rey, CA 90292
Tel: +1 310 823 9358
<mailto:[email protected]>";
description
"This YANG module translates IANA registries 'DNS CLASSes' and
'Resource Record (RR) TYPEs' to YANG derived types.
Copyright (c) 2018 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject to
the license terms contained in, the Simplified BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX
(https://tools.ietf.org/html/rfcXXXX); see the RFC itself for
full legal notices.";
reference
"IANA 'Domain Name System (DNS) Parameters' registry
https://www.iana.org/assignments/dns-parameters";
revision 2018-10-26 {
description
"Initial revision.";
reference
"RFC XXXX: YANG Types for DNS Classes and Resource Record
Types";
}
/* Typedefs */
typedef dns-class-name {
type enumeration {
enum IN {
value "1";
description
"Internet";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum CH {
value "3";
description
"Chaos";
reference
"Moon, D., 'Chaosnet', A. I. Memo 628, MIT Artificial
Intelligence Laboratory, June 1981";
}
enum HS {
value "4";
description
"Hesiod";
reference
"Dyer, S. and Hsu, F, 'Hesiod', Project Athena Technical
Plan - Name Service, April 1987";
}
enum NONE {
value "254";
description
"QCLASS NONE";
reference
"RFC 2136: Dynamic Updates in the Domain Name System (DNS
UPDATE)";
}
enum ANY {
value "255";
description
"QCLASS * (ANY)";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
}
description
"This enumeration type defines mnemonic names and corresponding
numeric values of DNS classes.";
reference
"RFC 6895: Domain Name System (DNS) IANA Considerations";
}
typedef dns-class {
type union {
type uint16;
type dns-class-name;
}
description
"This type allows for referring to a DNS class using either the
assigned mnemonic name or numeric value.";
}
typedef rr-type-name {
type enumeration {
enum A {
value "1";
description
"A host address.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum NS {
value "2";
description
"An authoritative name server.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MD {
value "3";
status "obsolete";
description
"A mail destination (obsolete – use MX).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MF {
value "4";
status "obsolete";
description
"A mail forwarder (obsolete – use MX).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum CNAME {
value "5";
description
"The canonical name for an alias.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum SOA {
value "6";
description
"Start of a zone of authority.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MB {
value "7";
description
"A mailbox domain name (experimental).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MG {
value "8";
description
"A mail group member (experimental).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MR {
value "9";
description
"A mail rename domain name (experimental).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum NULL {
value "10";
description
"A null RR (experimental).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum WKS {
value "11";
description
"A well known service description.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum PTR {
value "12";
description
"A domain name pointer.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum HINFO {
value "13";
description
"Host information.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MINFO {
value "14";
description
"Mailbox or mail list information.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MX {
value "15";
description
"Mail exchange.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum TXT {
value "16";
description
"Text strings.";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum RP {
value "17";
description
"Responsible person.";
reference
"RFC 1183: New DNS RR Definitions";
}
enum AFSDB {
value "18";
description
"AFS data base location.";
reference
"- RFC 1183: New DNS RR Definitions
- RFC 5864: DNS SRV Resource Records for AFS";
}
enum X25 {
value "19";
description
"X.25 PSDN address.";
reference
"RFC 1183: New DNS RR Definitions";
}
enum ISDN {
value "20";
description
"ISDN address.";
reference
"RFC 1183: New DNS RR Definitions";
}
enum RT {
value "21";
description
"Route through.";
reference
"RFC 1183: New DNS RR Definitions";
}
enum NSAP {
value "22";
description
"NSAP address, NSAP style A record.";
reference
"RFC 1706: DNS NSAP Resource Records";
}
enum NSAP-PTR {
value "23";
description
"Domain name pointer, NSAP style.";
reference
"- RFC 1348: DNS NSAP RRs
- RFC 1637: DNS NSAP Resource Records
- RFC 1706: DNS NSAP Resource Records";
}
enum SIG {
value "24";
description
"Security signature.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)
- RFC 2535: Domain Name System Security Extensions
- RFC 2536: DSA KEYs and SIGs in the Domain Name System
(DNS)
- RFC 2537: RSA/MD5 KEYs and SIGs in the Domain Name
System (DNS)
- RFC 2931: DNS Request and Transaction Signatures
(SIG(0)s)
- RFC 3110: RSA/SHA-1 SIGs and RSA KEYs in the Domain Name
System (DNS)
- RFC 3008: Domain Name System Security (DNSSEC) Signing
Authority";
}
enum KEY {
value "25";
description
"Security key.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)
- RFC 2535: Domain Name System Security Extensions
- RFC 2536: DSA KEYs and SIGs in the Domain Name System
(DNS)
- RFC 2537: RSA/MD5 KEYs and SIGs in the Domain Name
System (DNS)
- RFC 2539: Storage of Diffie-Hellman Keys in the Domain
Name System (DNS)
- RFC 3008: Domain Name System Security (DNSSEC) Signing
Authority
- RFC 3110: RSA/SHA-1 SIGs and RSA KEYs in the Domain Name
System (DNS)";
}
enum PX {
value "26";
description
"X.400 mail mapping information.";
reference
"RFC 2163: Using the Internet DNS to Distribute MIXER
Conformant Global Address Mapping (MCGAM)";
}
enum GPOS {
value "27";
description
"Geographical position.";
reference
"RFC 1712: DNS Encoding of Geographical Location";
}
enum AAAA {
value "28";
description
"IPv6 address.";
reference
"RFC 3596: DNS Extensions to Support IP Version 6";
}
enum LOC {
value "29";
description
"Location information.";
reference
"RFC 1876: A Means for Expressing Location Information in
the Domain Name System";
}
enum NXT {
value "30";
status "obsolete";
description
"Next domain (obsolete).";
reference
"- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)
- RFC 2535: Domain Name System Security Extensions";
}
enum EID {
value "31";
description
"Endpoint identifier.";
}
enum NIMLOC {
value "32";
description
"Nimrod locator.";
}
enum SRV {
value "33";
description
"Server selection.";
reference
"RFC 2782: A DNS RR for specifying the location of services
(DNS SRV)";
}
enum ATMA {
value "34";
description
"ATM address.";
reference
"ATM Forum Technical Committee, 'ATM Name System V2.0',
AF-DANS-0152.00, July 2000";
}
enum NAPTR {
value "35";
description
"Naming authority pointer.";
reference
"- RFC 2915: The Naming Authority Pointer (NAPTR) DNS
Resource Record
- RFC 2168: Resolution of Uniform Resource Identifiers
using the Domain Name System
- RFC 3403: Dynamic Delegation Discovery System (DDDS)
Part Three: The Domain Name System (DNS) Database";
}
enum KX {
value "36";
description
"Key exchanger.";
reference
"RFC 2230: Key Exchange Delegation Record for the DNS";
}
enum CERT {
value "37";
description
"Certificate.";
reference
"RFC 4398: Storing Certificates in the Domain Name System
(DNS)";
}
enum A6 {
value "38";
status "obsolete";
description
"IPv6 address (obsolete – use AAAA).";
reference
"- RFC 3226: DNSSEC and IPv6 A6 Aware Server/Resolver
Message Size Requirements
- RFC 2874: DNS Extensions to Support IPv6 Address
Aggregation and Renumbering
- RFC 6563: Moving A6 to Historic Status";
}
enum DNAME {
value "39";
description
"DNAME.";
reference
"- RFC 2672: Non-Terminal DNS Name Redirection
- RFC 6672: DNAME Redirection in the DNS";
}
enum SINK {
value "40";
description
"Kitchen sink.";
}
enum OPT {
value "41";
description
"OPT pseudo-RR.";
reference
"- RFC 6891: Extension Mechanisms for DNS (EDNS(0))
- RFC 3225: Indicating Resolver Support of DNSSEC";
}
enum APL {
value "42";
description
"Address prefix list.";
reference
"RFC 3123: A DNS RR Type for Lists of Address Prefixes (APL
RR)";
}
enum DS {
value "43";
description
"Delegation signer.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3658: Delegation Signer (DS) Resource Record (RR)";
}
enum SSHFP {
value "44";
description
"SSH key fingerprint.";
reference
"RFC 4255: Using DNS to Securely Publish Secure Shell (SSH)
Key Fingerprints";
}
enum IPSECKEY {
value "45";
description
"IPSec key.";
reference
"RFC 4025: A Method for Storing IPsec Keying Material in
DNS";
}
enum RRSIG {
value "46";
description
"RR signature.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)";
}
enum NSEC {
value "47";
description
"NSEC resource record.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)";
}
enum DNSKEY {
value "48";
description
"DNSKEY resource record.";
reference
"- RFC 4034: Resource Records for the DNS Security
Extensions
- RFC 3755: Legacy Resolver Compatibility for Delegation
Signer (DS)";
}
enum DHCID {
value "49";
description
"DHCID resource record.";
reference
"RFC 4701: A DNS Resource Record (RR) for Encoding Dynamic
Host Configuration Protocol (DHCP) Information (DHCID
RR)";
}
enum NSEC3 {
value "50";
description
"NSEC3 resource record.";
reference
"RFC 5155: DNS Security (DNSSEC) Hashed Authenticated
Denial of Existence";
}
enum NSEC3PARAM {
value "51";
description
"NSEC3PARAM resource record.";
reference
"RFC 5155: DNS Security (DNSSEC) Hashed Authenticated
Denial of Existence";
}
enum TLSA {
value "52";
description
"TLSA resource record.";
reference
"RFC 6698: The DNS-Based Authentication of Named Entities
(DANE) Transport Layer Security (TLS) Protocol: TLSA";
}
enum SMIMEA {
value "53";
description
"S/MIME cert association";
reference
"RFC 8162: Using Secure DNS to Associate Certificates with
Domain Names for S/MIME";
}
enum HIP {
value "55";
description
"Host identity protocol.";
reference
"RFC 5205: Host Identity Protocol (HIP) Domain Name System
(DNS) Extension";
}
enum NINFO {
value "56";
description
"NINFO resource record.";
}
enum RKEY {
value "57";
description
"RKEY resource record.";
}
enum TALINK {
value "58";
description
"Trust anchor LINK.";
}
enum CDS {
value "59";
description
"Child DS.";
reference
"RFC 7344: Automating DNSSEC Delegation Trust
Maintenance";
}
enum CDNSKEY {
value "60";
description
"DNSKEY(s) the child wants reflected in DS.";
reference
"RFC 7344: Automating DNSSEC Delegation Trust
Maintenance";
}
enum OPENPGPKEY {
value "61";
description
"OpenPGP key.";
reference
"RFC 7929: DNS-Based Authentication of Named Entities
(DANE) Bindings for OpenPGP";
}
enum CSYNC {
value "62";
description
"Child-to-parent synchronization.";
reference
"RFC 7477: Child-to-Parent Synchronization in DNS";
}
enum SPF {
value "99";
description
"SPF (sender policy framework) resource record.";
reference
"RFC 7208: Sender Policy Framework (SPF) for Authorizing
Use of Domains in Email, Version 1";
}
enum UINFO {
value "100";
description
"IANA-reserved.";
}
enum UID {
value "101";
description
"IANA-reserved.";
}
enum GID {
value "102";
description
"IANA-reserved.";
}
enum UNSPEC {
value "103";
description
"IANA-reserved.";
}
enum NID {
value "104";
description
"Node identifier.";
reference
"RFC 6742: DNS Resource Records for the Identifier-Locator
Network Protocol (ILNP)";
}
enum L32 {
value "105";
description
"L32 resource record.";
reference
"RFC 6742: DNS Resource Records for the Identifier-Locator
Network Protocol (ILNP)";
}
enum L64 {
value "106";
description
"L64 resource record.";
reference
"RFC 6742: DNS Resource Records for the Identifier-Locator
Network Protocol (ILNP)";
}
enum LP {
value "107";
description
"LP resource record.";
reference
"RFC 6742: DNS Resource Records for the Identifier-Locator
Network Protocol (ILNP)";
}
enum EUI48 {
value "108";
description
"An EUI-48 address.";
reference
"RFC 7043: Resource Records for EUI-48 and EUI-64 Addresses
in the DNS";
}
enum EUI64 {
value "109";
description
"An EUI-64 address.";
reference
"RFC 7043: Resource Records for EUI-48 and EUI-64 Addresses
in the DNS";
}
enum TKEY {
value "249";
description
"Transaction key.";
reference
"RFC 2930: Secret Key Establishment for DNS (TKEY RR)";
}
enum TSIG {
value "250";
description
"Transaction signature.";
reference
"RFC 2845: Secret Key Transaction Authentication for DNS
(TSIG)";
}
enum IXFR {
value "251";
description
"Incremental transfer.";
reference
"RFC 1995: Incremental Zone Transfer in DNS";
}
enum AXFR {
value "252";
description
"Transfer of an entire zone.";
reference
"- RFC 1035: Domain Names - Implementation and
Specification
- RFC 5936: DNS Zone Transfer Protocol (AXFR)";
}
enum MAILB {
value "253";
description
"Mailbox-related RRs (MB, MG or MR).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum MAILA {
value "254";
status "obsolete";
description
"Mail agent RRs (obsolete – see MX).";
reference
"RFC 1035: Domain Names - Implementation and
Specification";
}
enum * {
value "255";
description
"A request for all records the server/cache has
available.";
reference
"- RFC 1035: Domain Names - Implementation and
Specification
- RFC 6895: Domain Name System (DNS) IANA
Considerations";
}
enum URI {
value "256";
description
"URI resource record.";
reference
"RFC 7553: The Uniform Resource Identifier (URI) DNS
Resource Record";
}
enum CAA {
value "257";
description
"Certification authority authorization.";
reference
"RFC 6844: DNS Certification Authority Authorization (CAA)
Resource Record";
}
enum AVC {
value "258";
description
"Application visibility and control.";
}
enum DOA {
value "259";
description
"Digital object architecture";
reference
"draft-durand-doa-over-dns: DOA over DNS";
}
enum TA {
value "32768";
description
"DNSSEC trust authorities.";
}
enum DLV {
value "32769";
description
"DNSSEC lookaside validation.";
reference
"RFC 4431: The DNSSEC Lookaside Validation (DLV) DNS
Resource Record";
}
}
description
"This enumeration type defines mnemonic names and corresponding
numeric values of DNS resource record types.";
reference
"- RFC 6895: Domain Name System (DNS) IANA Considerations
- RFC 1035: Domain Names - Implementation and Specification";
}
typedef rr-type {
type union {
type uint16;
type rr-type-name;
}
description
"This type allows for referring to a DNS resource record type
using either the assigned mnemonic name or numeric value.";
}
}