Add files using upload-large-folder tool
Browse files- tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/dsa.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/ecdsa.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/eddsa.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/rsa.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/__init__.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_asyncio.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_common.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_sync.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_trio.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AFSDB.py +45 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AMTRELAY.py +91 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AVC.py +26 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CAA.py +71 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CDNSKEY.py +33 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CDS.py +29 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CERT.py +116 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CNAME.py +28 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CSYNC.py +68 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/DLV.py +24 -0
- tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/DNAME.py +27 -0
tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/dsa.cpython-312.pyc
ADDED
|
Binary file (6.22 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/ecdsa.cpython-312.pyc
ADDED
|
Binary file (6.09 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/eddsa.cpython-312.pyc
ADDED
|
Binary file (4.2 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/dnssecalgs/__pycache__/rsa.cpython-312.pyc
ADDED
|
Binary file (7.25 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (3.19 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_asyncio.cpython-312.pyc
ADDED
|
Binary file (18.5 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_common.cpython-312.pyc
ADDED
|
Binary file (14.8 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_sync.cpython-312.pyc
ADDED
|
Binary file (19.4 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/quic/__pycache__/_trio.cpython-312.pyc
ADDED
|
Binary file (16 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AFSDB.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.mxbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class AFSDB(dns.rdtypes.mxbase.UncompressedDowncasingMX):
|
| 24 |
+
"""AFSDB record"""
|
| 25 |
+
|
| 26 |
+
# Use the property mechanism to make "subtype" an alias for the
|
| 27 |
+
# "preference" attribute, and "hostname" an alias for the "exchange"
|
| 28 |
+
# attribute.
|
| 29 |
+
#
|
| 30 |
+
# This lets us inherit the UncompressedMX implementation but lets
|
| 31 |
+
# the caller use appropriate attribute names for the rdata type.
|
| 32 |
+
#
|
| 33 |
+
# We probably lose some performance vs. a cut-and-paste
|
| 34 |
+
# implementation, but this way we don't copy code, and that's
|
| 35 |
+
# good.
|
| 36 |
+
|
| 37 |
+
@property
|
| 38 |
+
def subtype(self):
|
| 39 |
+
"the AFSDB subtype"
|
| 40 |
+
return self.preference
|
| 41 |
+
|
| 42 |
+
@property
|
| 43 |
+
def hostname(self):
|
| 44 |
+
"the AFSDB hostname"
|
| 45 |
+
return self.exchange
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AMTRELAY.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import struct
|
| 19 |
+
|
| 20 |
+
import dns.exception
|
| 21 |
+
import dns.immutable
|
| 22 |
+
import dns.rdtypes.util
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class Relay(dns.rdtypes.util.Gateway):
|
| 26 |
+
name = "AMTRELAY relay"
|
| 27 |
+
|
| 28 |
+
@property
|
| 29 |
+
def relay(self):
|
| 30 |
+
return self.gateway
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
@dns.immutable.immutable
|
| 34 |
+
class AMTRELAY(dns.rdata.Rdata):
|
| 35 |
+
"""AMTRELAY record"""
|
| 36 |
+
|
| 37 |
+
# see: RFC 8777
|
| 38 |
+
|
| 39 |
+
__slots__ = ["precedence", "discovery_optional", "relay_type", "relay"]
|
| 40 |
+
|
| 41 |
+
def __init__(
|
| 42 |
+
self, rdclass, rdtype, precedence, discovery_optional, relay_type, relay
|
| 43 |
+
):
|
| 44 |
+
super().__init__(rdclass, rdtype)
|
| 45 |
+
relay = Relay(relay_type, relay)
|
| 46 |
+
self.precedence = self._as_uint8(precedence)
|
| 47 |
+
self.discovery_optional = self._as_bool(discovery_optional)
|
| 48 |
+
self.relay_type = relay.type
|
| 49 |
+
self.relay = relay.relay
|
| 50 |
+
|
| 51 |
+
def to_text(self, origin=None, relativize=True, **kw):
|
| 52 |
+
relay = Relay(self.relay_type, self.relay).to_text(origin, relativize)
|
| 53 |
+
return "%d %d %d %s" % (
|
| 54 |
+
self.precedence,
|
| 55 |
+
self.discovery_optional,
|
| 56 |
+
self.relay_type,
|
| 57 |
+
relay,
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
+
@classmethod
|
| 61 |
+
def from_text(
|
| 62 |
+
cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
|
| 63 |
+
):
|
| 64 |
+
precedence = tok.get_uint8()
|
| 65 |
+
discovery_optional = tok.get_uint8()
|
| 66 |
+
if discovery_optional > 1:
|
| 67 |
+
raise dns.exception.SyntaxError("expecting 0 or 1")
|
| 68 |
+
discovery_optional = bool(discovery_optional)
|
| 69 |
+
relay_type = tok.get_uint8()
|
| 70 |
+
if relay_type > 0x7F:
|
| 71 |
+
raise dns.exception.SyntaxError("expecting an integer <= 127")
|
| 72 |
+
relay = Relay.from_text(relay_type, tok, origin, relativize, relativize_to)
|
| 73 |
+
return cls(
|
| 74 |
+
rdclass, rdtype, precedence, discovery_optional, relay_type, relay.relay
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
|
| 78 |
+
relay_type = self.relay_type | (self.discovery_optional << 7)
|
| 79 |
+
header = struct.pack("!BB", self.precedence, relay_type)
|
| 80 |
+
file.write(header)
|
| 81 |
+
Relay(self.relay_type, self.relay).to_wire(file, compress, origin, canonicalize)
|
| 82 |
+
|
| 83 |
+
@classmethod
|
| 84 |
+
def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
|
| 85 |
+
(precedence, relay_type) = parser.get_struct("!BB")
|
| 86 |
+
discovery_optional = bool(relay_type >> 7)
|
| 87 |
+
relay_type &= 0x7F
|
| 88 |
+
relay = Relay.from_wire_parser(relay_type, parser, origin)
|
| 89 |
+
return cls(
|
| 90 |
+
rdclass, rdtype, precedence, discovery_optional, relay_type, relay.relay
|
| 91 |
+
)
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/AVC.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2016 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.txtbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class AVC(dns.rdtypes.txtbase.TXTBase):
|
| 24 |
+
"""AVC record"""
|
| 25 |
+
|
| 26 |
+
# See: IANA dns parameters for AVC
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CAA.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import struct
|
| 19 |
+
|
| 20 |
+
import dns.exception
|
| 21 |
+
import dns.immutable
|
| 22 |
+
import dns.rdata
|
| 23 |
+
import dns.tokenizer
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
@dns.immutable.immutable
|
| 27 |
+
class CAA(dns.rdata.Rdata):
|
| 28 |
+
"""CAA (Certification Authority Authorization) record"""
|
| 29 |
+
|
| 30 |
+
# see: RFC 6844
|
| 31 |
+
|
| 32 |
+
__slots__ = ["flags", "tag", "value"]
|
| 33 |
+
|
| 34 |
+
def __init__(self, rdclass, rdtype, flags, tag, value):
|
| 35 |
+
super().__init__(rdclass, rdtype)
|
| 36 |
+
self.flags = self._as_uint8(flags)
|
| 37 |
+
self.tag = self._as_bytes(tag, True, 255)
|
| 38 |
+
if not tag.isalnum():
|
| 39 |
+
raise ValueError("tag is not alphanumeric")
|
| 40 |
+
self.value = self._as_bytes(value)
|
| 41 |
+
|
| 42 |
+
def to_text(self, origin=None, relativize=True, **kw):
|
| 43 |
+
return '%u %s "%s"' % (
|
| 44 |
+
self.flags,
|
| 45 |
+
dns.rdata._escapify(self.tag),
|
| 46 |
+
dns.rdata._escapify(self.value),
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
@classmethod
|
| 50 |
+
def from_text(
|
| 51 |
+
cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
|
| 52 |
+
):
|
| 53 |
+
flags = tok.get_uint8()
|
| 54 |
+
tag = tok.get_string().encode()
|
| 55 |
+
value = tok.get_string().encode()
|
| 56 |
+
return cls(rdclass, rdtype, flags, tag, value)
|
| 57 |
+
|
| 58 |
+
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
|
| 59 |
+
file.write(struct.pack("!B", self.flags))
|
| 60 |
+
l = len(self.tag)
|
| 61 |
+
assert l < 256
|
| 62 |
+
file.write(struct.pack("!B", l))
|
| 63 |
+
file.write(self.tag)
|
| 64 |
+
file.write(self.value)
|
| 65 |
+
|
| 66 |
+
@classmethod
|
| 67 |
+
def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
|
| 68 |
+
flags = parser.get_uint8()
|
| 69 |
+
tag = parser.get_counted_bytes()
|
| 70 |
+
value = parser.get_remaining()
|
| 71 |
+
return cls(rdclass, rdtype, flags, tag, value)
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CDNSKEY.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2004-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.dnskeybase # lgtm[py/import-and-import-from]
|
| 20 |
+
|
| 21 |
+
# pylint: disable=unused-import
|
| 22 |
+
from dns.rdtypes.dnskeybase import ( # noqa: F401 lgtm[py/unused-import]
|
| 23 |
+
REVOKE,
|
| 24 |
+
SEP,
|
| 25 |
+
ZONE,
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
# pylint: enable=unused-import
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
@dns.immutable.immutable
|
| 32 |
+
class CDNSKEY(dns.rdtypes.dnskeybase.DNSKEYBase):
|
| 33 |
+
"""CDNSKEY record"""
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CDS.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.dsbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class CDS(dns.rdtypes.dsbase.DSBase):
|
| 24 |
+
"""CDS record"""
|
| 25 |
+
|
| 26 |
+
_digest_length_by_type = {
|
| 27 |
+
**dns.rdtypes.dsbase.DSBase._digest_length_by_type,
|
| 28 |
+
0: 1, # delete, RFC 8078 Sec. 4 (including Errata ID 5049)
|
| 29 |
+
}
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CERT.py
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import base64
|
| 19 |
+
import struct
|
| 20 |
+
|
| 21 |
+
import dns.dnssectypes
|
| 22 |
+
import dns.exception
|
| 23 |
+
import dns.immutable
|
| 24 |
+
import dns.rdata
|
| 25 |
+
import dns.tokenizer
|
| 26 |
+
|
| 27 |
+
_ctype_by_value = {
|
| 28 |
+
1: "PKIX",
|
| 29 |
+
2: "SPKI",
|
| 30 |
+
3: "PGP",
|
| 31 |
+
4: "IPKIX",
|
| 32 |
+
5: "ISPKI",
|
| 33 |
+
6: "IPGP",
|
| 34 |
+
7: "ACPKIX",
|
| 35 |
+
8: "IACPKIX",
|
| 36 |
+
253: "URI",
|
| 37 |
+
254: "OID",
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
_ctype_by_name = {
|
| 41 |
+
"PKIX": 1,
|
| 42 |
+
"SPKI": 2,
|
| 43 |
+
"PGP": 3,
|
| 44 |
+
"IPKIX": 4,
|
| 45 |
+
"ISPKI": 5,
|
| 46 |
+
"IPGP": 6,
|
| 47 |
+
"ACPKIX": 7,
|
| 48 |
+
"IACPKIX": 8,
|
| 49 |
+
"URI": 253,
|
| 50 |
+
"OID": 254,
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def _ctype_from_text(what):
|
| 55 |
+
v = _ctype_by_name.get(what)
|
| 56 |
+
if v is not None:
|
| 57 |
+
return v
|
| 58 |
+
return int(what)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def _ctype_to_text(what):
|
| 62 |
+
v = _ctype_by_value.get(what)
|
| 63 |
+
if v is not None:
|
| 64 |
+
return v
|
| 65 |
+
return str(what)
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
@dns.immutable.immutable
|
| 69 |
+
class CERT(dns.rdata.Rdata):
|
| 70 |
+
"""CERT record"""
|
| 71 |
+
|
| 72 |
+
# see RFC 4398
|
| 73 |
+
|
| 74 |
+
__slots__ = ["certificate_type", "key_tag", "algorithm", "certificate"]
|
| 75 |
+
|
| 76 |
+
def __init__(
|
| 77 |
+
self, rdclass, rdtype, certificate_type, key_tag, algorithm, certificate
|
| 78 |
+
):
|
| 79 |
+
super().__init__(rdclass, rdtype)
|
| 80 |
+
self.certificate_type = self._as_uint16(certificate_type)
|
| 81 |
+
self.key_tag = self._as_uint16(key_tag)
|
| 82 |
+
self.algorithm = self._as_uint8(algorithm)
|
| 83 |
+
self.certificate = self._as_bytes(certificate)
|
| 84 |
+
|
| 85 |
+
def to_text(self, origin=None, relativize=True, **kw):
|
| 86 |
+
certificate_type = _ctype_to_text(self.certificate_type)
|
| 87 |
+
return "%s %d %s %s" % (
|
| 88 |
+
certificate_type,
|
| 89 |
+
self.key_tag,
|
| 90 |
+
dns.dnssectypes.Algorithm.to_text(self.algorithm),
|
| 91 |
+
dns.rdata._base64ify(self.certificate, **kw),
|
| 92 |
+
)
|
| 93 |
+
|
| 94 |
+
@classmethod
|
| 95 |
+
def from_text(
|
| 96 |
+
cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
|
| 97 |
+
):
|
| 98 |
+
certificate_type = _ctype_from_text(tok.get_string())
|
| 99 |
+
key_tag = tok.get_uint16()
|
| 100 |
+
algorithm = dns.dnssectypes.Algorithm.from_text(tok.get_string())
|
| 101 |
+
b64 = tok.concatenate_remaining_identifiers().encode()
|
| 102 |
+
certificate = base64.b64decode(b64)
|
| 103 |
+
return cls(rdclass, rdtype, certificate_type, key_tag, algorithm, certificate)
|
| 104 |
+
|
| 105 |
+
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
|
| 106 |
+
prefix = struct.pack(
|
| 107 |
+
"!HHB", self.certificate_type, self.key_tag, self.algorithm
|
| 108 |
+
)
|
| 109 |
+
file.write(prefix)
|
| 110 |
+
file.write(self.certificate)
|
| 111 |
+
|
| 112 |
+
@classmethod
|
| 113 |
+
def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
|
| 114 |
+
(certificate_type, key_tag, algorithm) = parser.get_struct("!HHB")
|
| 115 |
+
certificate = parser.get_remaining()
|
| 116 |
+
return cls(rdclass, rdtype, certificate_type, key_tag, algorithm, certificate)
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CNAME.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.nsbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class CNAME(dns.rdtypes.nsbase.NSBase):
|
| 24 |
+
"""CNAME record
|
| 25 |
+
|
| 26 |
+
Note: although CNAME is officially a singleton type, dnspython allows
|
| 27 |
+
non-singleton CNAME rdatasets because such sets have been commonly
|
| 28 |
+
used by BIND and other nameservers for load balancing."""
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/CSYNC.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2004-2007, 2009-2011, 2016 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import struct
|
| 19 |
+
|
| 20 |
+
import dns.exception
|
| 21 |
+
import dns.immutable
|
| 22 |
+
import dns.name
|
| 23 |
+
import dns.rdata
|
| 24 |
+
import dns.rdatatype
|
| 25 |
+
import dns.rdtypes.util
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
@dns.immutable.immutable
|
| 29 |
+
class Bitmap(dns.rdtypes.util.Bitmap):
|
| 30 |
+
type_name = "CSYNC"
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
@dns.immutable.immutable
|
| 34 |
+
class CSYNC(dns.rdata.Rdata):
|
| 35 |
+
"""CSYNC record"""
|
| 36 |
+
|
| 37 |
+
__slots__ = ["serial", "flags", "windows"]
|
| 38 |
+
|
| 39 |
+
def __init__(self, rdclass, rdtype, serial, flags, windows):
|
| 40 |
+
super().__init__(rdclass, rdtype)
|
| 41 |
+
self.serial = self._as_uint32(serial)
|
| 42 |
+
self.flags = self._as_uint16(flags)
|
| 43 |
+
if not isinstance(windows, Bitmap):
|
| 44 |
+
windows = Bitmap(windows)
|
| 45 |
+
self.windows = tuple(windows.windows)
|
| 46 |
+
|
| 47 |
+
def to_text(self, origin=None, relativize=True, **kw):
|
| 48 |
+
text = Bitmap(self.windows).to_text()
|
| 49 |
+
return "%d %d%s" % (self.serial, self.flags, text)
|
| 50 |
+
|
| 51 |
+
@classmethod
|
| 52 |
+
def from_text(
|
| 53 |
+
cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
|
| 54 |
+
):
|
| 55 |
+
serial = tok.get_uint32()
|
| 56 |
+
flags = tok.get_uint16()
|
| 57 |
+
bitmap = Bitmap.from_text(tok)
|
| 58 |
+
return cls(rdclass, rdtype, serial, flags, bitmap)
|
| 59 |
+
|
| 60 |
+
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
|
| 61 |
+
file.write(struct.pack("!IH", self.serial, self.flags))
|
| 62 |
+
Bitmap(self.windows).to_wire(file)
|
| 63 |
+
|
| 64 |
+
@classmethod
|
| 65 |
+
def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
|
| 66 |
+
(serial, flags) = parser.get_struct("!IH")
|
| 67 |
+
bitmap = Bitmap.from_wire_parser(parser)
|
| 68 |
+
return cls(rdclass, rdtype, serial, flags, bitmap)
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/DLV.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.dsbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class DLV(dns.rdtypes.dsbase.DSBase):
|
| 24 |
+
"""DLV record"""
|
tool_server/.venv/lib/python3.12/site-packages/dns/rdtypes/ANY/DNAME.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
|
| 4 |
+
#
|
| 5 |
+
# Permission to use, copy, modify, and distribute this software and its
|
| 6 |
+
# documentation for any purpose with or without fee is hereby granted,
|
| 7 |
+
# provided that the above copyright notice and this permission notice
|
| 8 |
+
# appear in all copies.
|
| 9 |
+
#
|
| 10 |
+
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
|
| 11 |
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 12 |
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
|
| 13 |
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 14 |
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 15 |
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 16 |
+
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 17 |
+
|
| 18 |
+
import dns.immutable
|
| 19 |
+
import dns.rdtypes.nsbase
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
@dns.immutable.immutable
|
| 23 |
+
class DNAME(dns.rdtypes.nsbase.UncompressedNS):
|
| 24 |
+
"""DNAME record"""
|
| 25 |
+
|
| 26 |
+
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
|
| 27 |
+
self.target.to_wire(file, None, origin, canonicalize)
|