1 Unbound module documentation
2 ================================
4 .. automodule:: unbound
12 .. automethod:: __init__
15 ----------------------
16 .. autoclass:: ub_result
21 The original question, name text string.
27 .. attribute:: canonname
29 Canonical name for the result (the final cname). May be empty if no canonical name exists.
31 .. attribute:: answer_packet
33 The DNS answer packet. Network formatted. Can contain DNSSEC types.
35 .. attribute:: havedata
37 If there is any data, this property is true. If false, there was no data (nxdomain may be true, rcode can be set).
41 True, if the result is validated securely.
42 False, if validation failed or domain queried has no security info.
44 It is possible to get a result with no data (havedata is false),
45 and secure is true. This means that the non-existance of the data
46 was cryptographically proven (with signatures).
50 If the result was not secure (secure==0), and this result is due to a security failure, bogus is true.
51 This means the data has been actively tampered with, signatures
52 failed, expected signatures were not present, timestamps on
53 signatures were out of date and so on.
55 If secure==0 and bogus==0, this can happen if the data is not secure
56 because security is disabled for that domain name.
57 This means the data is from a domain where data is not signed.
59 .. attribute:: nxdomain
61 If there was no data, and the domain did not exist, this is true.
62 If it is false, and there was no data, then the domain name is purported to exist, but the requested data type is not available.
66 DNS RCODE for the result. May contain additional error code if there was no data due to an error.
67 0 (RCODE_NOERROR) if okay. See predefined `RCODE_` constants.
69 RCODE can be represented in display representation form (string) using :attr:`rcode_str` attribute.
72 ----------------------
73 .. autoclass:: ub_data
77 ----------------------
78 .. autofunction:: reverse
79 .. autofunction:: idn2dname
80 .. autofunction:: dname2idn
83 -----------------------
103 * RR_CLASS_NONE = 254
117 * RR_TYPE_DLV = 32769
119 * RR_TYPE_DNSKEY = 48
125 * RR_TYPE_IPSECKEY = 45
131 * RR_TYPE_MAILA = 254
132 * RR_TYPE_MAILB = 253
141 * RR_TYPE_NIMLOC = 32
144 * RR_TYPE_NSAP_PTR = 23
147 * RR_TYPE_NSEC3PARAMS = 51
164 * RR_TYPE_UINFO = 100
165 * RR_TYPE_UNSPEC = 103