]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add support for CDS record type
authorJan Vcelak <jv@fcelda.cz>
Sat, 31 Oct 2015 05:42:07 +0000 (06:42 +0100)
committerJan Vcelak <jv@fcelda.cz>
Sat, 31 Oct 2015 11:40:11 +0000 (12:40 +0100)
dns/rdatatype.py
dns/rdtypes/ANY/CDS.py [new file with mode: 0644]
dns/rdtypes/ANY/__init__.py
tests/example
tests/example1.good
tests/example2.good
tests/example3.good

index 16594aac564a585a9a39d00db4e466a1e26261ba..19e236f6aa320f329c3525dc266e3c416aa95e55 100644 (file)
@@ -80,6 +80,7 @@ NSEC3 = 50
 NSEC3PARAM = 51
 TLSA = 52
 HIP = 55
+CDS = 59
 SPF = 99
 UNSPEC = 103
 TKEY = 249
@@ -145,6 +146,7 @@ _by_text = {
     'NSEC3PARAM' : NSEC3PARAM,
     'TLSA' : TLSA,
     'HIP' : HIP,
+    'CDS' : CDS,
     'SPF' : SPF,
     'UNSPEC' : UNSPEC,
     'TKEY' : TKEY,
diff --git a/dns/rdtypes/ANY/CDS.py b/dns/rdtypes/ANY/CDS.py
new file mode 100644 (file)
index 0000000..15fe012
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
+#
+# Permission to use, copy, modify, and distribute this software and its
+# documentation for any purpose with or without fee is hereby granted,
+# provided that the above copyright notice and this permission notice
+# appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+import dns.rdtypes.dsbase
+
+class CDS(dns.rdtypes.dsbase.DSBase):
+    """CDS record"""
index cfb0be6223dc818aa06b653d4997c510a61df13f..bc7f4288d13d6f2b6015eefa13abc23c69dbbd98 100644 (file)
@@ -17,6 +17,7 @@
 
 __all__ = [
     'AFSDB',
+    'CDS',
     'CERT',
     'CNAME',
     'DLV',
index 7c9360e14d5faeb8876244572dbc4695748694ca..6f264ea8517ede36e297f4706b1c81397512400b 100644 (file)
@@ -194,6 +194,7 @@ wks03                       WKS     10.0.0.2 6 ( 65535 )
 x2501                  X25     "123456789"
 dlv01                  DLV     12345 3 1 123456789abcdef67890123456789abcdef67890
 ds01                   DS      12345 3 1 123456789abcdef67890123456789abcdef67890
+cds01                  CDS     12345 3 1 123456789abcdef67890123456789abcdef67890
 apl01                  APL     1:192.168.32.0/21 !1:192.168.38.0/28
 apl02                  APL     1:224.0.0.0/4 2:FF00:0:0:0:0:0:0:0/8
 unknown2               TYPE999 \# 8 0a0000010a000001
index 172295bf89fd69a39e26d8f51746af39931b7b23..93d812cd3ce742cebba5abd121290b4ef19c2fe8 100644 (file)
@@ -20,6 +20,7 @@ caa03 3600 IN CAA 0 iodef "http://iodef.example.com/"
 caa04 3600 IN CAA 0 issue "ca.example.net; account=230123"
 caa05 3600 IN CAA 0 issue "ca.example.net; policy=ev"
 caa06 3600 IN CAA 128 tbs "Unknown"
+cds01 3600 IN CDS 12345 3 1 123456789abcdef67890123456789abcdef67890
 cert01 3600 IN CERT 65534 65535 PRIVATEOID MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWCn/GxHhai6VAuHAoNUz 4YoU1tVfSCSqQYn6//11U6Nld80jEeC8 aTrO+KKmCaY=
 cname01 3600 IN CNAME cname-target.
 cname02 3600 IN CNAME cname-target
index 5c631137321f470e6ae85c856a0a498ae2b2ef83..261cacea2a8b95b65cf44162351b99458ecf3684 100644 (file)
@@ -20,6 +20,7 @@ caa03.example. 3600 IN CAA 0 iodef "http://iodef.example.com/"
 caa04.example. 3600 IN CAA 0 issue "ca.example.net; account=230123"
 caa05.example. 3600 IN CAA 0 issue "ca.example.net; policy=ev"
 caa06.example. 3600 IN CAA 128 tbs "Unknown"
+cds01.example. 3600 IN CDS 12345 3 1 123456789abcdef67890123456789abcdef67890
 cert01.example. 3600 IN CERT 65534 65535 PRIVATEOID MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWCn/GxHhai6VAuHAoNUz 4YoU1tVfSCSqQYn6//11U6Nld80jEeC8 aTrO+KKmCaY=
 cname01.example. 3600 IN CNAME cname-target.
 cname02.example. 3600 IN CNAME cname-target.example.
index 172295bf89fd69a39e26d8f51746af39931b7b23..93d812cd3ce742cebba5abd121290b4ef19c2fe8 100644 (file)
@@ -20,6 +20,7 @@ caa03 3600 IN CAA 0 iodef "http://iodef.example.com/"
 caa04 3600 IN CAA 0 issue "ca.example.net; account=230123"
 caa05 3600 IN CAA 0 issue "ca.example.net; policy=ev"
 caa06 3600 IN CAA 128 tbs "Unknown"
+cds01 3600 IN CDS 12345 3 1 123456789abcdef67890123456789abcdef67890
 cert01 3600 IN CERT 65534 65535 PRIVATEOID MxFcby9k/yvedMfQgKzhH5er0Mu/vILz 45IkskceFGgiWCn/GxHhai6VAuHAoNUz 4YoU1tVfSCSqQYn6//11U6Nld80jEeC8 aTrO+KKmCaY=
 cname01 3600 IN CNAME cname-target.
 cname02 3600 IN CNAME cname-target