1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 import dns.exception
17 import dns.inet
18 import dns.rdata
19 import dns.tokenizer
20
21 -class AAAA(dns.rdata.Rdata):
22 """AAAA record.
23
24 @ivar address: an IPv6 address
25 @type address: string (in the standard IPv6 format)"""
26
27 __slots__ = ['address']
28
29 - def __init__(self, rdclass, rdtype, address):
34
35 - def to_text(self, origin=None, relativize=True, **kw):
37
38 - def from_text(cls, rdclass, rdtype, tok, origin = None, relativize = True):
39 (ttype, address) = tok.get()
40 if ttype != dns.tokenizer.IDENTIFIER:
41 raise dns.exception.SyntaxError
42 t = tok.get_eol()
43 return cls(rdclass, rdtype, address)
44
45 from_text = classmethod(from_text)
46
47 - def to_wire(self, file, compress = None, origin = None):
49
50 - def from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin = None):
54
55 from_wire = classmethod(from_wire)
56
57 - def _cmp(self, other):
61