9 def __init__(self, IPv4 = None, IPv6 = None):
10 self._IPv4 = None if IPv4 is None else ipaddress.IPv4Address(IPv4)
11 self._IPv6 = None if IPv6 is None else ipaddress.IPv6Address(IPv6)
14 return Address(IPv4 = self._IPv4)
17 return Address(IPv6 = self._IPv6)
20 def __init__(self, address = None, MX = None, TCP = None, UDP = None):
21 self._address = address
24 def __init__(self, SRV = None, TLSA=None):
29 def __init__(self, name):
33 def __init__(self, NS, DS = None):
37 def __init__(self, name, mail, NS,
38 secondary_refresh, secondary_retry, secondary_discard,
39 NX_TTL = None, A_TTL = None, other_TTL = None,
41 assert other_TTL is not None
42 self._NX_TTL = other_TTL if NX_TTL is None else NX_TTL
43 self._A_TTL = other_TTL if A_TTL is None else A_TTL
44 self._other_TTL = other_TTL
46 def write(self, file):
47 raise NotImplementedError()